|
|
@ -77,13 +77,12 @@ class MainActivity : VMBaseActivity<MainViewModel>(R.layout.activity_main), |
|
|
|
override fun onPageSelected(position: Int) { |
|
|
|
override fun onPageSelected(position: Int) { |
|
|
|
pagePosition = position |
|
|
|
pagePosition = position |
|
|
|
when (position) { |
|
|
|
when (position) { |
|
|
|
0, 1 -> bottom_navigation_view.menu.getItem(position).isChecked = true |
|
|
|
0, 1, 3 -> bottom_navigation_view.menu.getItem(position).isChecked = true |
|
|
|
2 -> if (showRss()) { |
|
|
|
2 -> if (showRss()) { |
|
|
|
bottom_navigation_view.menu.getItem(position).isChecked = true |
|
|
|
bottom_navigation_view.menu.getItem(position).isChecked = true |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
bottom_navigation_view.menu.getItem(3).isChecked = true |
|
|
|
bottom_navigation_view.menu.getItem(3).isChecked = true |
|
|
|
} |
|
|
|
} |
|
|
|
else -> MyFragment() |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|