diff options
author | Thialfihar <thialfihar@gmail.com> | 2010-05-15 16:09:49 +0000 |
---|---|---|
committer | Thialfihar <thialfihar@gmail.com> | 2010-05-15 16:09:49 +0000 |
commit | 2c5a80a16f3699287971b3fcdf38fbb4c42b84ae (patch) | |
tree | a9e58544798970dfeac6a739830ce8d396e27133 /src/org/thialfihar/android/apg/EditKeyActivity.java | |
parent | 363dcb62b81cff2a2b5ec275ece76c00045d2ec9 (diff) | |
download | open-keychain-2c5a80a16f3699287971b3fcdf38fbb4c42b84ae.tar.gz open-keychain-2c5a80a16f3699287971b3fcdf38fbb4c42b84ae.tar.bz2 open-keychain-2c5a80a16f3699287971b3fcdf38fbb4c42b84ae.zip |
added pass phrase cache to preferences, not used yet, but preference and about menu item now show up in every activity
Diffstat (limited to 'src/org/thialfihar/android/apg/EditKeyActivity.java')
-rw-r--r-- | src/org/thialfihar/android/apg/EditKeyActivity.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/org/thialfihar/android/apg/EditKeyActivity.java b/src/org/thialfihar/android/apg/EditKeyActivity.java index eb462d24a..a1c74951e 100644 --- a/src/org/thialfihar/android/apg/EditKeyActivity.java +++ b/src/org/thialfihar/android/apg/EditKeyActivity.java @@ -128,8 +128,12 @@ public class EditKeyActivity extends BaseActivity implements OnClickListener { @Override public boolean onCreateOptionsMenu(Menu menu) { menu.add(0, Id.menu.option.new_pass_phrase, 0, - (havePassPhrase() ? R.string.menu_changePassPhrase : R.string.menu_setCachedPassPhrase)) + (havePassPhrase() ? R.string.menu_changePassPhrase : R.string.menu_setPassPhrase)) .setIcon(android.R.drawable.ic_menu_add); + menu.add(0, Id.menu.option.preferences, 1, R.string.menu_preferences) + .setIcon(android.R.drawable.ic_menu_preferences); + menu.add(0, Id.menu.option.about, 2, R.string.menu_about) + .setIcon(android.R.drawable.ic_menu_info_details); return true; } @@ -142,10 +146,9 @@ public class EditKeyActivity extends BaseActivity implements OnClickListener { } default: { - break; + return super.onOptionsItemSelected(item); } } - return false; } @Override @@ -157,7 +160,7 @@ public class EditKeyActivity extends BaseActivity implements OnClickListener { if (havePassPhrase()) { alert.setTitle(R.string.title_changePassPhrase); } else { - alert.setTitle(R.string.title_setCachedPassPhrase); + alert.setTitle(R.string.title_setPassPhrase); } alert.setMessage(R.string.enterPassPhraseTwice); @@ -201,10 +204,9 @@ public class EditKeyActivity extends BaseActivity implements OnClickListener { } default: { - break; + return super.onCreateDialog(id); } } - return super.onCreateDialog(id); } @Override |