mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-03 21:41:15 +01:00
Fix possible NPE in HomeActivity.onPrepareOptionsMenu
Closes https://github.com/SchildiChat/SchildiChat-android-rageshakes/issues/133 Change-Id: Id2d18881a7bb2ad492a47cb74973ec2c712936bf
This commit is contained in:
parent
57a9ea4617
commit
4271e4c4ab
@ -502,8 +502,8 @@ class HomeActivity :
|
||||
override fun getMenuRes() = R.menu.home
|
||||
|
||||
override fun onPrepareOptionsMenu(menu: Menu): Boolean {
|
||||
menu.findItem(R.id.menu_home_init_sync_legacy).isVisible = vectorPreferences.developerMode()
|
||||
menu.findItem(R.id.menu_home_init_sync_optimized).isVisible = vectorPreferences.developerMode()
|
||||
menu.findItem(R.id.menu_home_init_sync_legacy)?.isVisible = vectorPreferences.developerMode()
|
||||
menu.findItem(R.id.menu_home_init_sync_optimized)?.isVisible = vectorPreferences.developerMode()
|
||||
return super.onPrepareOptionsMenu(menu)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user