
Prior to this, it would only update the "Uninstall"/"Run"/"Upgrade" buttons after a fresh install, or an uninstall. This change is a bit more liberal in how often we try to update the view, due to a race condition with PackageManager and AppDetails2. AppDetails2 listens for InstalledAppProviderService in onResume, but sometimes that is too late (the notification has already fired).