Correctly update the list item in updates view after install.
Prior to this, it would still show the "Ready to update" list item. Now it updatpes the description to say "successfully installed" and removes the "Update" button.
This commit is contained in:
parent
8a69816648
commit
2ab5c6a1c6
@ -448,14 +448,15 @@ public class AppListItemController extends RecyclerView.ViewHolder {
|
||||
private final BroadcastReceiver onInstallAction = new BroadcastReceiver() {
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
if (currentApp == null || installButton == null) {
|
||||
Apk apk = intent.getParcelableExtra(Installer.EXTRA_APK);
|
||||
if (currentApp == null || !TextUtils.equals(apk.packageName, currentApp.packageName)) {
|
||||
return;
|
||||
}
|
||||
|
||||
configureAppName(currentApp);
|
||||
configureActionButton(currentApp);
|
||||
|
||||
Apk apk = intent.getParcelableExtra(Installer.EXTRA_APK);
|
||||
if (!TextUtils.equals(apk.packageName, currentApp.packageName)) {
|
||||
if (installButton == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user