[app] check for updates after uninstalling an app

it may happen that the uninstalled app had an update that we should remove from the UI and notifications
This commit is contained in:
Torsten Grote
2023-05-26 15:57:13 -03:00
parent d539c9d09c
commit ed90ed8b67
2 changed files with 2 additions and 0 deletions

View File

@@ -640,6 +640,7 @@ public class AppDetailsActivity extends AppCompatActivity
app.installedVersionName = null;
onAppChanged(app);
}
AppUpdateStatusManager.getInstance(context).checkForUpdates();
unregisterUninstallReceiver();
break;
case Installer.ACTION_UNINSTALL_INTERRUPTED:

View File

@@ -101,6 +101,7 @@ public class KnownVulnAppListItemController extends AppListItemController {
case Installer.ACTION_INSTALL_COMPLETE:
case Installer.ACTION_UNINSTALL_COMPLETE:
refreshUpdatesList();
AppUpdateStatusManager.getInstance(context).checkForUpdates();
unregisterInstallReceiver();
break;