Merge "Remove notification right after clicking on cancel" am: 00cf589f45 am: 08be4d3510

Change-Id: Ica2810c69098903674d6743ad4f0dfdf3ea801a9
This commit is contained in:
Automerger Merge Worker
2020-01-08 03:27:42 +00:00

View File

@@ -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.");