InstallManagerService: Clear notification on privileged install complete

* Without privileged extension, the install proceeds to user interaction
  which is where the notification is cleared.
* When the privileged extension is installed that doesn't happen,
  so the download notification doesn't get cleared
This commit is contained in:
Chirayu Desai 2017-03-25 15:38:57 +05:30
parent 4f420c55d0
commit 46fc6dbbfd

View File

@ -335,6 +335,7 @@ public class InstallManagerService extends Service {
Apk apkComplete = removeFromActive(downloadUrl);
PackageManagerCompat.setInstaller(getPackageManager(), apkComplete.packageName);
if (PrivilegedInstaller.isDefault(context)) cancelNotification(downloadUrl);
localBroadcastManager.unregisterReceiver(this);
break;