mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-08 06:33:53 +01:00
make sure mEvent is initialized when working with it at EventActivity
This commit is contained in:
parent
5a86786894
commit
678e870b00
@ -390,8 +390,8 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
|
||||
|
||||
override fun onCreateOptionsMenu(menu: Menu): Boolean {
|
||||
menuInflater.inflate(R.menu.menu_event, menu)
|
||||
menu.findItem(R.id.delete).isVisible = mEvent.id != 0
|
||||
menu.findItem(R.id.share).isVisible = mEvent.id != 0
|
||||
menu.findItem(R.id.delete).isVisible = mDialogTheme != 0 && mEvent.id != 0
|
||||
menu.findItem(R.id.share).isVisible = mDialogTheme != 0 && mEvent.id != 0
|
||||
return true
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user