remove APK from active list if install process is interrupted
If the install process is interrupted, then InstallManagerService is no longer managing it. It will make the announcements and set the notification, then forget about that APK.
This commit is contained in:
parent
07cadd862a
commit
e95dec30b5
@ -288,18 +288,18 @@ public class InstallManagerService extends Service {
|
||||
// show notification if app details is not visible
|
||||
if (!TextUtils.isEmpty(errorMessage)) {
|
||||
App app = getAppFromActive(downloadUrl);
|
||||
String title = String.format(
|
||||
getString(R.string.install_error_notify_title),
|
||||
app.name);
|
||||
|
||||
// show notification if app details is not visible
|
||||
if (AppDetails.isAppVisible(app.packageName)) {
|
||||
cancelNotification(downloadUrl);
|
||||
} else {
|
||||
String title = String.format(
|
||||
getString(R.string.install_error_notify_title),
|
||||
app.name);
|
||||
notifyError(downloadUrl, title, errorMessage);
|
||||
}
|
||||
}
|
||||
|
||||
removeFromActive(downloadUrl);
|
||||
localBroadcastManager.unregisterReceiver(this);
|
||||
break;
|
||||
case Installer.ACTION_INSTALL_USER_INTERACTION:
|
||||
|
Loading…
x
Reference in New Issue
Block a user