Removed "installed" notification when entering Details screen.
This commit is contained in:
parent
7efa62891d
commit
0461860479
@ -701,6 +701,14 @@ public class AppDetails extends AppCompatActivity {
|
|||||||
app = newApp;
|
app = newApp;
|
||||||
|
|
||||||
startingPrefs = app.getPrefs(this).createClone();
|
startingPrefs = app.getPrefs(this).createClone();
|
||||||
|
|
||||||
|
// Remove all "installed" statuses for this app, since we are now viewing it.
|
||||||
|
AppUpdateStatusManager appUpdateStatusManager = AppUpdateStatusManager.getInstance(this);
|
||||||
|
for (AppUpdateStatusManager.AppUpdateStatus status : appUpdateStatusManager.getByPackageName(app.packageName)) {
|
||||||
|
if (status.status == AppUpdateStatusManager.Status.Installed) {
|
||||||
|
appUpdateStatusManager.removeApk(status.getUniqueKey());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void refreshApkList() {
|
private void refreshApkList() {
|
||||||
|
@ -121,6 +121,14 @@ public class AppDetails2 extends AppCompatActivity implements ShareChooserDialog
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
app = newApp;
|
app = newApp;
|
||||||
|
|
||||||
|
// Remove all "installed" statuses for this app, since we are now viewing it.
|
||||||
|
AppUpdateStatusManager appUpdateStatusManager = AppUpdateStatusManager.getInstance(this);
|
||||||
|
for (AppUpdateStatusManager.AppUpdateStatus status : appUpdateStatusManager.getByPackageName(app.packageName)) {
|
||||||
|
if (status.status == AppUpdateStatusManager.Status.Installed) {
|
||||||
|
appUpdateStatusManager.removeApk(status.getUniqueKey());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user