Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
821938089 committed Dec 18, 2024
1 parent e2bc837 commit f1eeec9
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
}
}
Expand Down

0 comments on commit f1eeec9

Please sign in to comment.