Show promise app icon in All Apps while installation process.

This CL only modifies the model and is behind a feature flag
which per default is set to false.
The app icon will appear as a promise icon, it reacts on icon
or label changes and the icon will be remove on finishing the
installation process. With this CL the progress of the installation
process is not visible.

Bug: 23952570

Change-Id: I510825d0b0b1b01eb14f7e50f0a2358b0d8b99b5
This commit is contained in:
Mario Bertschler
2017-03-15 11:56:47 -07:00
parent 04030d5a44
commit 817afa3447
9 changed files with 242 additions and 48 deletions

View File

@@ -21,9 +21,8 @@ public class PackageInstallStateChangedTaskTest extends BaseModelUpdateTaskTestC
}
private PackageInstallStateChangedTask newTask(String pkg, int progress) {
PackageInstallInfo installInfo = new PackageInstallInfo(pkg);
installInfo.progress = progress;
installInfo.state = PackageInstallerCompat.STATUS_INSTALLING;
int state = PackageInstallerCompat.STATUS_INSTALLING;
PackageInstallInfo installInfo = new PackageInstallInfo(pkg, state, progress);
return new PackageInstallStateChangedTask(installInfo);
}