mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -104,13 +104,12 @@ class RssFavoritesActivity : BaseActivity<ActivityRssFavoritesBinding>() {
|
||||
if (groupsMenu != null) {
|
||||
upGroupsMenu()
|
||||
}
|
||||
if (groupList.isNotEmpty() && currentGroup.isEmpty()) {
|
||||
currentGroup = groupList[0]
|
||||
}
|
||||
adapter.notifyDataSetChanged()
|
||||
val item = groupList.indexOf(currentGroup)
|
||||
if (item > -1) {
|
||||
binding.viewPager.setCurrentItem(item)
|
||||
} else if (groupList.isNotEmpty()) {
|
||||
currentGroup = groupList[binding.viewPager.currentItem]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user