|
|
@ -136,6 +136,11 @@ class MainActivity : VMBaseActivity<ActivityMainBinding, MainViewModel>(), |
|
|
|
binding.viewPagerMain.currentItem = 0 |
|
|
|
binding.viewPagerMain.currentItem = 0 |
|
|
|
return true |
|
|
|
return true |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
(fragmentMap[getFragmentId(0)] as? BookshelfFragment2)?.let { |
|
|
|
|
|
|
|
if (it.back()) { |
|
|
|
|
|
|
|
return true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
if (System.currentTimeMillis() - exitTime > 2000) { |
|
|
|
if (System.currentTimeMillis() - exitTime > 2000) { |
|
|
|
toastOnUi(R.string.double_click_exit) |
|
|
|
toastOnUi(R.string.double_click_exit) |
|
|
|
exitTime = System.currentTimeMillis() |
|
|
|
exitTime = System.currentTimeMillis() |
|
|
|