mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
fd30e24022
commit
e9142848b8
@ -99,9 +99,11 @@ class BookshelfFragment1 : BaseBookshelfFragment(R.layout.fragment_bookshelf),
|
||||
|
||||
@Synchronized
|
||||
private fun selectLastTab() {
|
||||
tabLayout.removeOnTabSelectedListener(this)
|
||||
tabLayout.getTabAt(getPrefInt(PreferKey.saveTabPosition, 0))?.select()
|
||||
tabLayout.addOnTabSelectedListener(this)
|
||||
tabLayout.post {
|
||||
tabLayout.removeOnTabSelectedListener(this)
|
||||
tabLayout.getTabAt(getPrefInt(PreferKey.saveTabPosition, 0))?.select()
|
||||
tabLayout.addOnTabSelectedListener(this)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onTabReselected(tab: TabLayout.Tab) {
|
||||
|
Loading…
Reference in New Issue
Block a user