Disable modules section if Magisk is not active

Fix #4925
This commit is contained in:
RikkaW 2021-11-12 15:36:29 +08:00 committed by John Wu
parent ac26681fe7
commit 5fa127c415

View File

@ -76,6 +76,7 @@ class MainActivity : BaseMainActivity<MainViewModel, ActivityMainMd2Binding>() {
} }
binding.mainNavigation.menu.apply { binding.mainNavigation.menu.apply {
findItem(R.id.superuserFragment)?.isEnabled = Utils.showSuperUser() findItem(R.id.superuserFragment)?.isEnabled = Utils.showSuperUser()
findItem(R.id.modulesFragment)?.isEnabled = Info.env.isActive
} }
val section = val section =