summaryrefslogtreecommitdiff
path: root/packages/DynamicSystemInstallationService/src
diff options
context:
space:
mode:
authorPo-Chien Hsueh <pchsueh@google.com>2020-01-08 03:05:42 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-01-08 03:05:42 +0000
commit00cf589f4530b0f8de07f00e1633b3797c551099 (patch)
tree6bd4d6a1f6ca4d808435a0cf6d1007ff65d90fac /packages/DynamicSystemInstallationService/src
parentf04ee52d5a42fb5ec6212b61eb0dd3cbac335258 (diff)
parentede56ae7ea4574b6942e748f31f9ef862a7ec0bb (diff)
Merge "Remove notification right after clicking on cancel"
Diffstat (limited to 'packages/DynamicSystemInstallationService/src')
-rw-r--r--packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java b/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java
index 9e49826f70c3..c2ce84023869 100644
--- a/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java
+++ b/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java
@@ -262,10 +262,11 @@ public class DynamicSystemInstallationService extends Service
return;
}
+ stopForeground(true);
mJustCancelledByUser = true;
if (mInstallTask.cancel(false)) {
- // Will cleanup and post status in onResult()
+ // Will stopSelf() in onResult()
Log.d(TAG, "Cancel request filed successfully");
} else {
Log.e(TAG, "Trying to cancel installation while it's already completed.");