|
|
@ -207,17 +207,18 @@ class MainActivity : VMBaseActivity<ActivityMainBinding, MainViewModel>(), |
|
|
|
menu.findItem(R.id.menu_discovery).isVisible = showDiscovery |
|
|
|
menu.findItem(R.id.menu_discovery).isVisible = showDiscovery |
|
|
|
menu.findItem(R.id.menu_rss).isVisible = showRss |
|
|
|
menu.findItem(R.id.menu_rss).isVisible = showRss |
|
|
|
} |
|
|
|
} |
|
|
|
bottomMenuCount = 1 |
|
|
|
var index = 0 |
|
|
|
if (showDiscovery) { |
|
|
|
if (showDiscovery) { |
|
|
|
realPositions[bottomMenuCount] = idExplore |
|
|
|
index++ |
|
|
|
bottomMenuCount++ |
|
|
|
realPositions[index] = idExplore |
|
|
|
} |
|
|
|
} |
|
|
|
if (showRss) { |
|
|
|
if (showRss) { |
|
|
|
realPositions[bottomMenuCount] = idRss |
|
|
|
index++ |
|
|
|
bottomMenuCount++ |
|
|
|
realPositions[index] = idRss |
|
|
|
} |
|
|
|
} |
|
|
|
realPositions[bottomMenuCount] = idMy |
|
|
|
index++ |
|
|
|
bottomMenuCount++ |
|
|
|
realPositions[index] = idMy |
|
|
|
|
|
|
|
bottomMenuCount = index + 1 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private fun getFragmentId(position: Int): Int { |
|
|
|
private fun getFragmentId(position: Int): Int { |
|
|
|