diff options
author | Adithya Abraham Philip <adithyaphilip@gmail.com> | 2015-06-24 07:06:54 +0530 |
---|---|---|
committer | Adithya Abraham Philip <adithyaphilip@gmail.com> | 2015-06-27 01:21:52 +0530 |
commit | 5f170e5819a5b20cd22675f8848b60707f41c387 (patch) | |
tree | 0a1407d39be345a42ea8e99a4fa5c19c8d382f54 /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainNewService.java | |
parent | 0012db1f6d5e7a80ea22b6f4577d70d13ec6fc96 (diff) | |
download | open-keychain-5f170e5819a5b20cd22675f8848b60707f41c387.tar.gz open-keychain-5f170e5819a5b20cd22675f8848b60707f41c387.tar.bz2 open-keychain-5f170e5819a5b20cd22675f8848b60707f41c387.zip |
fixed Certify op
Diffstat (limited to 'OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainNewService.java')
-rw-r--r-- | OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainNewService.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainNewService.java b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainNewService.java index ee1431276..5aa72fda2 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainNewService.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainNewService.java @@ -75,7 +75,7 @@ public class KeychainNewService extends Service implements Progressable { @Override public int onStartCommand(final Intent intent, int flags, int startId) { - if (intent.getAction().equals(ACTION_CANCEL)) { + if (intent.getAction() != null && intent.getAction().equals(ACTION_CANCEL)) { mActionCanceled.set(true); return START_NOT_STICKY; } @@ -108,7 +108,7 @@ public class KeychainNewService extends Service implements Progressable { } else if (inputParcel instanceof SaveKeyringParcel) { op = new EditKeyOperation(outerThis, new ProviderHelper(outerThis), outerThis, mActionCanceled); - } else if (inputParcel instanceof CertifyAction) { + } else if (inputParcel instanceof CertifyActionsParcel) { op = new CertifyOperation(outerThis, new ProviderHelper(outerThis), outerThis, mActionCanceled); } else if (inputParcel instanceof DeleteKeyringParcel) { |