aboutsummaryrefslogtreecommitdiffstats
path: root/org_apg/src/org/thialfihar/android/apg/ui/SelectPublicKeyListActivity.java
diff options
context:
space:
mode:
authorDominik <dominik@dominikschuermann.de>2012-06-20 15:55:36 +0300
committerDominik <dominik@dominikschuermann.de>2012-06-20 15:55:36 +0300
commit47f88cdf4b22865ac0beb2d0b25f0ade7e6cfc03 (patch)
tree1ce5d430191a19898d2761686e6bb974744e56a9 /org_apg/src/org/thialfihar/android/apg/ui/SelectPublicKeyListActivity.java
parentc5ed6ce6f7dcb892cbdfac5bd591cb4e6e798961 (diff)
downloadopen-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/SelectPublicKeyListActivity.java')
-rw-r--r--org_apg/src/org/thialfihar/android/apg/ui/SelectPublicKeyListActivity.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/org_apg/src/org/thialfihar/android/apg/ui/SelectPublicKeyListActivity.java b/org_apg/src/org/thialfihar/android/apg/ui/SelectPublicKeyListActivity.java
index 5330e1573..903631ffd 100644
--- a/org_apg/src/org/thialfihar/android/apg/ui/SelectPublicKeyListActivity.java
+++ b/org_apg/src/org/thialfihar/android/apg/ui/SelectPublicKeyListActivity.java
@@ -43,6 +43,9 @@ public class SelectPublicKeyListActivity extends BaseActivity {
public static final String ACTION_SELECT_PUBLIC_KEYS = Constants.INTENT_PREFIX
+ "SELECT_PUBLIC_KEYS";
+ public static final String EXTRA_SELECTION = "selection";
+ public static final String EXTRA_USER_IDS = "userIds";
+
protected ListView mList;
protected SelectPublicKeyListAdapter mListAdapter;
protected View mFilterLayout;
@@ -95,7 +98,7 @@ public class SelectPublicKeyListActivity extends BaseActivity {
}
long selectedKeyIds[] = null;
- selectedKeyIds = intent.getLongArrayExtra(PGPHelper.EXTRA_SELECTION);
+ selectedKeyIds = intent.getLongArrayExtra(EXTRA_SELECTION);
if (selectedKeyIds == null) {
Vector<Long> vector = new Vector<Long>();
@@ -157,8 +160,8 @@ public class SelectPublicKeyListActivity extends BaseActivity {
selectedKeyIds[i] = keys.get(i);
}
String userIdArray[] = new String[0];
- data.putExtra(PGPHelper.EXTRA_SELECTION, selectedKeyIds);
- data.putExtra(PGPHelper.EXTRA_USER_IDS, userIds.toArray(userIdArray));
+ data.putExtra(EXTRA_SELECTION, selectedKeyIds);
+ data.putExtra(EXTRA_USER_IDS, userIds.toArray(userIdArray));
setResult(RESULT_OK, data);
finish();
}