mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-15 02:38:59 +03: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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue