mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
make sure the Save and Delete button at event edit is always visible
This commit is contained in:
@@ -453,9 +453,9 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
|
|||||||
|
|
||||||
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
override fun onOptionsItemSelected(item: MenuItem): Boolean {
|
||||||
when (item.itemId) {
|
when (item.itemId) {
|
||||||
R.id.share -> shareEvent()
|
|
||||||
R.id.delete -> deleteEvent()
|
|
||||||
R.id.save -> saveEvent()
|
R.id.save -> saveEvent()
|
||||||
|
R.id.delete -> deleteEvent()
|
||||||
|
R.id.share -> shareEvent()
|
||||||
else -> return super.onOptionsItemSelected(item)
|
else -> return super.onOptionsItemSelected(item)
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
@@ -2,9 +2,9 @@
|
|||||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||||
<item
|
<item
|
||||||
android:id="@+id/share"
|
android:id="@+id/save"
|
||||||
android:icon="@drawable/ic_share"
|
android:icon="@drawable/ic_check"
|
||||||
android:title="@string/share"
|
android:title="@string/save"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/delete"
|
android:id="@+id/delete"
|
||||||
@@ -12,8 +12,8 @@
|
|||||||
android:title="@string/delete"
|
android:title="@string/delete"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom"/>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/save"
|
android:id="@+id/share"
|
||||||
android:icon="@drawable/ic_check"
|
android:icon="@drawable/ic_share"
|
||||||
android:title="@string/save"
|
android:title="@string/share"
|
||||||
app:showAsAction="ifRoom"/>
|
app:showAsAction="ifRoom"/>
|
||||||
</menu>
|
</menu>
|
||||||
|
Reference in New Issue
Block a user