Refresh cancellation signal for newly launched operation
This commit is contained in:
@@ -71,7 +71,7 @@ public class KeychainService extends Service implements Progressable {
|
|||||||
public static final String ACTION_CANCEL = "action_cancel";
|
public static final String ACTION_CANCEL = "action_cancel";
|
||||||
|
|
||||||
// this attribute can possibly merged with the one above? not sure...
|
// this attribute can possibly merged with the one above? not sure...
|
||||||
private CancellationSignal mActionCanceled = new CancellationSignal();
|
private CancellationSignal mActionCanceled;
|
||||||
|
|
||||||
ThreadLocal<Messenger> mMessenger = new ThreadLocal<>();
|
ThreadLocal<Messenger> mMessenger = new ThreadLocal<>();
|
||||||
|
|
||||||
@@ -91,6 +91,8 @@ public class KeychainService extends Service implements Progressable {
|
|||||||
return START_NOT_STICKY;
|
return START_NOT_STICKY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mActionCanceled = new CancellationSignal();
|
||||||
|
|
||||||
Runnable actionRunnable = new Runnable() {
|
Runnable actionRunnable = new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|||||||
Reference in New Issue
Block a user