Merge "Remove notification right after clicking on cancel"
am: 00cf589f45
Change-Id: I6fee85779f6ffc5e61fb7fe1fa91dcc38a99c712
This commit is contained in:
@@ -262,10 +262,11 @@ public class DynamicSystemInstallationService extends Service
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stopForeground(true);
|
||||||
mJustCancelledByUser = true;
|
mJustCancelledByUser = true;
|
||||||
|
|
||||||
if (mInstallTask.cancel(false)) {
|
if (mInstallTask.cancel(false)) {
|
||||||
// Will cleanup and post status in onResult()
|
// Will stopSelf() in onResult()
|
||||||
Log.d(TAG, "Cancel request filed successfully");
|
Log.d(TAG, "Cancel request filed successfully");
|
||||||
} else {
|
} else {
|
||||||
Log.e(TAG, "Trying to cancel installation while it's already completed.");
|
Log.e(TAG, "Trying to cancel installation while it's already completed.");
|
||||||
|
|||||||
Reference in New Issue
Block a user