From d1e08f9305a451feab0bc7ac93e165952435a599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Sch=C3=BCrmann?= Date: Sun, 7 Sep 2014 17:00:58 +0200 Subject: Two buttons to encrypt files and text, some fixes --- .../org/sufficientlysecure/keychain/ui/EncryptTextActivity.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/EncryptTextActivity.java') diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/EncryptTextActivity.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/EncryptTextActivity.java index a59c4de68..61eb9a7b1 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/EncryptTextActivity.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/EncryptTextActivity.java @@ -49,7 +49,7 @@ import java.util.Set; public class EncryptTextActivity extends DrawerActivity implements EncryptActivityInterface { /* Intents */ - public static final String ACTION_ENCRYPT_TEXT = Constants.INTENT_PREFIX + "ENCRYPT_TEXT"; + public static final String ACTION_ENCRYPT = Constants.INTENT_PREFIX + "ENCRYPT"; /* EXTRA keys for input */ public static final String EXTRA_TEXT = "text"; @@ -338,7 +338,7 @@ public class EncryptTextActivity extends DrawerActivity implements EncryptActivi setContentView(R.layout.encrypt_text_activity); // if called with an intent action, do not init drawer navigation - if (ACTION_ENCRYPT_TEXT.equals(getIntent().getAction())) { + if (ACTION_ENCRYPT.equals(getIntent().getAction())) { // lock drawer deactivateDrawerNavigation(); // TODO: back button to key? @@ -415,9 +415,9 @@ public class EncryptTextActivity extends DrawerActivity implements EncryptActivi /** * Main Actions */ - if (ACTION_ENCRYPT_TEXT.equals(action) && textData != null) { + if (ACTION_ENCRYPT.equals(action) && textData != null) { mMessage = textData; - } else if (ACTION_ENCRYPT_TEXT.equals(action)) { + } else if (ACTION_ENCRYPT.equals(action)) { Log.e(Constants.TAG, "Include the extra 'text' in your Intent!"); } } -- cgit v1.2.3