From 28d9a2f26b71158823d73451bf25e1f5cf0c5431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Fri, 3 Jan 2014 18:33:44 +0100 Subject: [PATCH] reorder menu in key view --- OpenPGP-Keychain/res/menu/key_view.xml | 60 ++++++++++++------- .../keychain/ui/KeyViewActivity.java | 2 +- 2 files changed, 40 insertions(+), 22 deletions(-) diff --git a/OpenPGP-Keychain/res/menu/key_view.xml b/OpenPGP-Keychain/res/menu/key_view.xml index ac5c96c5d..0785abd32 100644 --- a/OpenPGP-Keychain/res/menu/key_view.xml +++ b/OpenPGP-Keychain/res/menu/key_view.xml @@ -2,37 +2,55 @@ + android:id="@+id/menu_key_view_share" + android:icon="@android:drawable/ic_menu_share" + android:showAsAction="always" + android:title="@string/menu_share"> + + + + + + + + + + + + - - - - - + android:title="@string/menu_delete_key"> + + + \ No newline at end of file diff --git a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/KeyViewActivity.java b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/KeyViewActivity.java index ad63f022d..45c79fc8e 100644 --- a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/KeyViewActivity.java +++ b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/KeyViewActivity.java @@ -165,7 +165,7 @@ public class KeyViewActivity extends SherlockFragmentActivity implements CreateN // // mKeyListActivity.showExportKeysDialog(masterKeyId); return true; - case R.id.menu_key_view_share: + case R.id.menu_key_view_share_default: shareKey(); return true; case R.id.menu_key_view_share_qr_code: