make sure the Save and Delete button at event edit is always visible

This commit is contained in:
tibbi 2017-09-09 14:47:35 +02:00
parent c5b5207073
commit 091d0bd9cf
2 changed files with 8 additions and 8 deletions

View File

@ -453,9 +453,9 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
override fun onOptionsItemSelected(item: MenuItem): Boolean {
when (item.itemId) {
R.id.share -> shareEvent()
R.id.delete -> deleteEvent()
R.id.save -> saveEvent()
R.id.delete -> deleteEvent()
R.id.share -> shareEvent()
else -> return super.onOptionsItemSelected(item)
}
return true

View File

@ -2,9 +2,9 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/share"
android:icon="@drawable/ic_share"
android:title="@string/share"
android:id="@+id/save"
android:icon="@drawable/ic_check"
android:title="@string/save"
app:showAsAction="ifRoom"/>
<item
android:id="@+id/delete"
@ -12,8 +12,8 @@
android:title="@string/delete"
app:showAsAction="ifRoom"/>
<item
android:id="@+id/save"
android:icon="@drawable/ic_check"
android:title="@string/save"
android:id="@+id/share"
android:icon="@drawable/ic_share"
android:title="@string/share"
app:showAsAction="ifRoom"/>
</menu>