diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2013-09-09 14:03:58 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2013-09-09 14:03:58 +0200 |
commit | b6a1bc770cea52a9f12537d7ad6b70112cc91d5f (patch) | |
tree | 3021c868bb2ebae3cd9dd9cf90cca86db59c093a /OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/EditKeyActivity.java | |
parent | 9bcf7336709f946a64f51057bfdaa0647fcae629 (diff) | |
download | open-keychain-b6a1bc770cea52a9f12537d7ad6b70112cc91d5f.tar.gz open-keychain-b6a1bc770cea52a9f12537d7ad6b70112cc91d5f.tar.bz2 open-keychain-b6a1bc770cea52a9f12537d7ad6b70112cc91d5f.zip |
Remove most of old API
Diffstat (limited to 'OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/EditKeyActivity.java')
-rw-r--r-- | OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/EditKeyActivity.java | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/EditKeyActivity.java b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/EditKeyActivity.java index 4137a1b19..84b648c19 100644 --- a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/EditKeyActivity.java +++ b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/ui/EditKeyActivity.java @@ -65,20 +65,20 @@ import com.actionbarsherlock.app.SherlockFragmentActivity; public class EditKeyActivity extends SherlockFragmentActivity { - // possible intent actions for this activity - public static final String ACTION_CREATE_KEY = Constants.INTENT_PREFIX + "CREATE_KEYRING"; - public static final String ACTION_EDIT_KEY = Constants.INTENT_PREFIX + "EDIT_KEYRING"; + // Actions for internal use only: + public static final String ACTION_CREATE_KEY = Constants.INTENT_PREFIX + "CREATE_KEY"; + public static final String ACTION_EDIT_KEY = Constants.INTENT_PREFIX + "EDIT_KEY"; // possible extra keys - public static final String EXTRA_USER_IDS = "userIds"; - public static final String EXTRA_NO_PASSPHRASE = "noPassphrase"; - public static final String EXTRA_GENERATE_DEFAULT_KEYS = "generateDefaultKeys"; - public static final String EXTRA_MASTER_KEY_ID = "masterKeyId"; - public static final String EXTRA_MASTER_CAN_SIGN = "masterCanSign"; + public static final String EXTRA_USER_IDS = "user_ids"; + public static final String EXTRA_NO_PASSPHRASE = "no_passphrase"; + public static final String EXTRA_GENERATE_DEFAULT_KEYS = "generate_default_keys"; + public static final String EXTRA_MASTER_KEY_ID = "master_key_id"; + public static final String EXTRA_MASTER_CAN_SIGN = "master_can_sign"; // results when saving key - public static final String RESULT_EXTRA_MASTER_KEY_ID = "masterKeyId"; - public static final String RESULT_EXTRA_USER_ID = "userId"; + public static final String RESULT_EXTRA_MASTER_KEY_ID = "master_key_id"; + public static final String RESULT_EXTRA_USER_ID = "user_id"; private ActionBar mActionBar; @@ -106,12 +106,6 @@ public class EditKeyActivity extends SherlockFragmentActivity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - // TODO: disabled, old API! - // check permissions for intent actions without user interaction - // String[] restrictedActions = new String[] { ACTION_CREATE_KEY }; - // OtherHelper.checkPackagePermissionForActions(this, this.getCallingPackage(), - // Constants.PERMISSION_ACCESS_API, getIntent().getAction(), restrictedActions); - // Inflate a "Done"/"Cancel" custom action bar view final LayoutInflater inflater = (LayoutInflater) getSupportActionBar().getThemedContext() .getSystemService(LAYOUT_INFLATER_SERVICE); |