Merge "Dismiss DSU notification in executeDiscardCommand()" am: 3313038017

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1448418

Change-Id: Id0a2b1fb7752e3d9de83f3613d0290c0ecf9096a
This commit is contained in:
Yo Chiang
2020-10-06 04:38:53 +00:00
committed by Automerger Merge Worker

View File

@@ -321,6 +321,9 @@ public class DynamicSystemInstallationService extends Service
if (!isDynamicSystemInstalled() && (getStatus() != STATUS_READY)) {
Log.e(TAG, "Trying to discard AOT while there is no complete installation");
// Stop foreground state and dismiss stale notification.
stopForeground(STOP_FOREGROUND_REMOVE);
resetTaskAndStop();
return;
}