Merge pull request #4643 from SeannyM/settings-saving

Android: Change Exit Without Saving to Save and Exit
This commit is contained in:
Matthew Parlane 2017-01-11 22:59:42 +13:00 committed by GitHub
commit a3bef102b7
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>