diff options
author | Adithya Abraham Philip <adithyaphilip@gmail.com> | 2015-06-24 06:30:47 +0530 |
---|---|---|
committer | Adithya Abraham Philip <adithyaphilip@gmail.com> | 2015-06-27 01:21:52 +0530 |
commit | 0012db1f6d5e7a80ea22b6f4577d70d13ec6fc96 (patch) | |
tree | 6e5d1970a86066a93e19e075cfa8e456a41fba1f /OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainNewService.java | |
parent | 2f110344ed37e62320d2ff30ffad6c24315ff179 (diff) | |
download | open-keychain-0012db1f6d5e7a80ea22b6f4577d70d13ec6fc96.tar.gz open-keychain-0012db1f6d5e7a80ea22b6f4577d70d13ec6fc96.tar.bz2 open-keychain-0012db1f6d5e7a80ea22b6f4577d70d13ec6fc96.zip |
deleted KeychainService
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 | 7 |
1 files changed, 7 insertions, 0 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 9998e46a2..ee1431276 100644 --- a/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainNewService.java +++ b/OpenKeychain/src/main/java/org/sufficientlysecure/keychain/service/KeychainNewService.java @@ -57,6 +57,8 @@ public class KeychainNewService extends Service implements Progressable { public static final String EXTRA_OPERATION_INPUT = "op_input"; public static final String EXTRA_CRYPTO_INPUT = "crypto_input"; + public static final String ACTION_CANCEL = "action_cancel"; + // this attribute can possibly merged with the one above? not sure... private AtomicBoolean mActionCanceled = new AtomicBoolean(false); @@ -73,6 +75,11 @@ public class KeychainNewService extends Service implements Progressable { @Override public int onStartCommand(final Intent intent, int flags, int startId) { + if (intent.getAction().equals(ACTION_CANCEL)) { + mActionCanceled.set(true); + return START_NOT_STICKY; + } + Runnable actionRunnable = new Runnable() { @Override public void run() { |