diff options
author | Dominik <dominik@dominikschuermann.de> | 2012-06-20 15:55:36 +0300 |
---|---|---|
committer | Dominik <dominik@dominikschuermann.de> | 2012-06-20 15:55:36 +0300 |
commit | 47f88cdf4b22865ac0beb2d0b25f0ade7e6cfc03 (patch) | |
tree | 1ce5d430191a19898d2761686e6bb974744e56a9 /org_apg/src/org/thialfihar/android/apg/ui/KeyServerExportActivity.java | |
parent | c5ed6ce6f7dcb892cbdfac5bd591cb4e6e798961 (diff) | |
download | open-keychain-47f88cdf4b22865ac0beb2d0b25f0ade7e6cfc03.tar.gz open-keychain-47f88cdf4b22865ac0beb2d0b25f0ade7e6cfc03.tar.bz2 open-keychain-47f88cdf4b22865ac0beb2d0b25f0ade7e6cfc03.zip |
extra constants moved into coresponding activities
Diffstat (limited to 'org_apg/src/org/thialfihar/android/apg/ui/KeyServerExportActivity.java')
-rw-r--r-- | org_apg/src/org/thialfihar/android/apg/ui/KeyServerExportActivity.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/org_apg/src/org/thialfihar/android/apg/ui/KeyServerExportActivity.java b/org_apg/src/org/thialfihar/android/apg/ui/KeyServerExportActivity.java index df9f2c09c..cf14492b6 100644 --- a/org_apg/src/org/thialfihar/android/apg/ui/KeyServerExportActivity.java +++ b/org_apg/src/org/thialfihar/android/apg/ui/KeyServerExportActivity.java @@ -47,6 +47,11 @@ public class KeyServerExportActivity extends BaseActivity { public static final String ACTION_EXPORT_KEY_TO_SERVER = Constants.INTENT_PREFIX + "EXPORT_KEY_TO_SERVER"; + public static final String EXTRA_KEY_ID = "keyId"; + + // TODO: remove when using new intentservice: + public static final String EXTRA_ERROR = "error"; + private Button export; private Spinner keyServer; @@ -103,7 +108,7 @@ public class KeyServerExportActivity extends BaseActivity { HkpKeyServer server = new HkpKeyServer((String) keyServer.getSelectedItem()); - int keyRingId = getIntent().getIntExtra(PGPHelper.EXTRA_KEY_ID, -1); + int keyRingId = getIntent().getIntExtra(EXTRA_KEY_ID, -1); PGPKeyRing keyring = PGPHelper.getKeyRing(keyRingId); if (keyring != null && keyring instanceof PGPPublicKeyRing) { @@ -116,7 +121,7 @@ public class KeyServerExportActivity extends BaseActivity { data.putInt(Constants.extras.STATUS, Id.message.export_done); if (error != null) { - data.putString(PGPHelper.EXTRA_ERROR, error); + data.putString(EXTRA_ERROR, error); } msg.setData(data); @@ -128,7 +133,7 @@ public class KeyServerExportActivity extends BaseActivity { super.doneCallback(msg); Bundle data = msg.getData(); - String error = data.getString(PGPHelper.EXTRA_ERROR); + String error = data.getString(EXTRA_ERROR); if (error != null) { Toast.makeText(this, getString(R.string.errorMessage, error), Toast.LENGTH_SHORT) .show(); |