Android: Change Exit Without Saving to Save and Exit

This commit is contained in:
Sean Maas 2017-01-10 17:12:42 -05:00
parent 52ec186f0a
commit cc29691875
3 changed files with 5 additions and 6 deletions

View File

@ -91,8 +91,7 @@ public final class SettingsActivityPresenter
{
switch (itemId)
{
case R.id.menu_exit_no_save:
mShouldSave = false;
case R.id.menu_save_exit:
mView.finish();
return true;
}

View File

@ -3,9 +3,9 @@
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/menu_exit_no_save"
android:title="@string/preferences_exit_no_save"
android:icon="@drawable/ic_cancel"
android:id="@+id/menu_save_exit"
android:title="@string/preferences_save_exit"
android:icon="@drawable/ic_quicksave"
app:showAsAction="ifRoom"/>
</menu>

View File

@ -199,7 +199,7 @@
<string name="add_directory_empty_folder">That folder is empty.</string>
<!-- Preferences Screen -->
<string name="preferences_exit_no_save">Exit Without Saving</string>
<string name="preferences_save_exit">Save and Exit</string>
<string name="preferences_settings">Settings</string>
<string name="preferences_extensions">Extension Bindings</string>