aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyFragment.java
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2016-01-05 19:24:43 +0100
committerVincent Breitmoser <valodim@mugenguild.com>2016-01-05 19:24:43 +0100
commitb09336574769ea4098a29d52fa8cd4303b1f0500 (patch)
treea8beecc3026627d9a3c922bad7bcd38133b332a5 /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyFragment.java
parentc2491982798756ab211c6ad811390b57c648cd51 (diff)
downloadopen-keychain-b09336574769ea4098a29d52fa8cd4303b1f0500.tar.gz
open-keychain-b09336574769ea4098a29d52fa8cd4303b1f0500.tar.bz2
open-keychain-b09336574769ea4098a29d52fa8cd4303b1f0500.zip
minor fixes to ViewKeyActivity
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyFragment.java')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyFragment.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyFragment.java
index 89dd90ff7..8cb1e03af 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyFragment.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyFragment.java
@@ -79,7 +79,7 @@ public class ViewKeyFragment extends LoaderFragment implements
private ListView mUserIds;
enum PostponeType {
- NONE, LINKED;
+ NONE, LINKED
}
boolean mIsSecret = false;
@@ -118,7 +118,7 @@ public class ViewKeyFragment extends LoaderFragment implements
ViewKeyFragment frag = new ViewKeyFragment();
Bundle args = new Bundle();
args.putParcelable(ARG_DATA_URI, dataUri);
- args.putInt(ARG_POSTPONE_TYPE, postponeType.ordinal());
+ args.putString(ARG_POSTPONE_TYPE, postponeType.toString());
frag.setArguments(args);
@@ -316,7 +316,7 @@ public class ViewKeyFragment extends LoaderFragment implements
super.onActivityCreated(savedInstanceState);
Uri dataUri = getArguments().getParcelable(ARG_DATA_URI);
- mPostponeType = PostponeType.values()[getArguments().getInt(ARG_POSTPONE_TYPE, 0)];
+ mPostponeType = PostponeType.valueOf(getArguments().getString(ARG_POSTPONE_TYPE));
if (dataUri == null) {
Log.e(Constants.TAG, "Data missing. Should be Uri of key!");
getActivity().finish();