aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyInputFragment.java
diff options
context:
space:
mode:
authorDaniel Nelz <daniel.nelz@outlook.com>2015-03-04 21:07:32 +0100
committerDaniel Nelz <daniel.nelz@outlook.com>2015-03-04 21:07:32 +0100
commitfe8b08ac84b0360463612ac517444dbd7d2f96d7 (patch)
treeaf53ec674da6ff1b835c49d28b447553232856b9 /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyInputFragment.java
parent5a4fc0a07127155f9c560374e65bf1373979d3ac (diff)
downloadopen-keychain-fe8b08ac84b0360463612ac517444dbd7d2f96d7.tar.gz
open-keychain-fe8b08ac84b0360463612ac517444dbd7d2f96d7.tar.bz2
open-keychain-fe8b08ac84b0360463612ac517444dbd7d2f96d7.zip
#1042 replaced some int constants with enums
Created enum FragAction in CreateKeyActivity.java and enum State in KeyFormattingUtils.java and replaced int constants with them
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyInputFragment.java')
-rw-r--r--OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyInputFragment.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyInputFragment.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyInputFragment.java
index 8aa9fa6db..ac74e87ed 100644
--- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyInputFragment.java
+++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/CreateKeyInputFragment.java
@@ -32,6 +32,7 @@ import android.widget.AutoCompleteTextView;
import android.widget.EditText;
import org.sufficientlysecure.keychain.R;
+import org.sufficientlysecure.keychain.ui.CreateKeyActivity.FragAction;
import org.sufficientlysecure.keychain.util.ContactHelper;
import java.util.regex.Matcher;
@@ -161,7 +162,7 @@ public class CreateKeyInputFragment extends Fragment {
);
hideKeyboard();
- mCreateKeyActivity.loadFragment(null, frag, CreateKeyActivity.FRAG_ACTION_TO_RIGHT);
+ mCreateKeyActivity.loadFragment(null, frag, FragAction.TO_RIGHT);
}
}