Revert "Remove cancel from app menu"

This reverts commit 3c0b97f280.
This commit is contained in:
Dominik Schürmann 2014-03-30 19:28:35 +02:00
parent 3c0b97f280
commit 583467356c
2 changed files with 7 additions and 0 deletions

View File

@ -82,6 +82,9 @@ public class AccountSettingsActivity extends ActionBarActivity {
case R.id.menu_account_settings_delete:
deleteAccount();
return true;
case R.id.menu_account_settings_cancel:
finish();
return true;
}
return super.onOptionsItemSelected(item);
}

View File

@ -6,5 +6,9 @@
android:id="@+id/menu_account_settings_delete"
android:title="@string/api_settings_delete_account"
app:showAsAction="never" />
<item
android:id="@+id/menu_account_settings_cancel"
android:title="@string/api_settings_cancel"
app:showAsAction="never" />
</menu>