|
@@ -5,7 +5,6 @@ import android.content.Intent
|
|
|
import android.graphics.Color
|
|
|
import android.os.Build
|
|
|
import android.os.Bundle
|
|
|
-import android.view.Menu
|
|
|
import android.view.View
|
|
|
import android.view.ViewGroup
|
|
|
import android.widget.Toast
|
|
@@ -466,7 +465,6 @@ class MainActivity : BaseViewBindingActivity<MainActivityBinding>() {
|
|
|
if (visible) {
|
|
|
if (collapse) {
|
|
|
bottomNavAnimator?.expand()
|
|
|
- updateNavMenu(it.menu)
|
|
|
}
|
|
|
bottomViewNavigationBehavior?.slideUp(it)
|
|
|
} else {
|
|
@@ -482,15 +480,9 @@ class MainActivity : BaseViewBindingActivity<MainActivityBinding>() {
|
|
|
private fun showSideNav(visible: Boolean) {
|
|
|
binding.sideNav?.let {
|
|
|
it.isVisible = visible
|
|
|
- updateNavMenu(it.menu)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private fun updateNavMenu(menu: Menu) {
|
|
|
- menu.findItem(R.id.nav_updates).isVisible = preferences.showNavUpdates()
|
|
|
- menu.findItem(R.id.nav_history).isVisible = preferences.showNavHistory()
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* Used to manually offset a view within the activity's child views that might be cut off due to
|
|
|
* the collapsing AppBarLayout.
|