diff options
author | Dominik <dominik@dominikschuermann.de> | 2012-06-20 15:27:45 +0300 |
---|---|---|
committer | Dominik <dominik@dominikschuermann.de> | 2012-06-20 15:27:45 +0300 |
commit | c5ed6ce6f7dcb892cbdfac5bd591cb4e6e798961 (patch) | |
tree | 8feec5c8e184126bbec595912cbae322594eff7b /org_apg/src/org/thialfihar/android/apg/ui/KeyListActivity.java | |
parent | e9c01957f4797d13518115e7e26ed015547f0891 (diff) | |
download | open-keychain-c5ed6ce6f7dcb892cbdfac5bd591cb4e6e798961.tar.gz open-keychain-c5ed6ce6f7dcb892cbdfac5bd591cb4e6e798961.tar.bz2 open-keychain-c5ed6ce6f7dcb892cbdfac5bd591cb4e6e798961.zip |
seperating intent action constants into activities as it is best practice, restructering...
Diffstat (limited to 'org_apg/src/org/thialfihar/android/apg/ui/KeyListActivity.java')
-rw-r--r-- | org_apg/src/org/thialfihar/android/apg/ui/KeyListActivity.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/org_apg/src/org/thialfihar/android/apg/ui/KeyListActivity.java b/org_apg/src/org/thialfihar/android/apg/ui/KeyListActivity.java index 8e2bcaecb..a96f6a21c 100644 --- a/org_apg/src/org/thialfihar/android/apg/ui/KeyListActivity.java +++ b/org_apg/src/org/thialfihar/android/apg/ui/KeyListActivity.java @@ -69,6 +69,9 @@ import java.io.OutputStream; import java.util.Vector; public class KeyListActivity extends BaseActivity { + + public static final String ACTION_IMPORT = Constants.INTENT_PREFIX + "IMPORT"; + protected ExpandableListView mList; protected KeyListAdapter mListAdapter; protected View mFilterLayout; @@ -139,7 +142,7 @@ public class KeyListActivity extends BaseActivity { mListAdapter = new KeyListAdapter(this, searchString); mList.setAdapter(mListAdapter); - if (PGPHelper.Intent.IMPORT.equals(intent.getAction())) { + if (ACTION_IMPORT.equals(intent.getAction())) { if ("file".equals(intent.getScheme()) && intent.getDataString() != null) { mImportFilename = Uri.decode(intent.getDataString().replace("file://", "")); } else { |