Add UI updates for incremental app installs.
1. Changed Preload Icon UI to be grayscale while the app is not startable. 2. Added progress bar for when app is installed but still ownloading. 3. Updated Preload Icon progress and click handling to use new incremental api. Progress bar color updates will follow in a separate CL. Demo: https://drive.google.com/file/d/1H1EvtTorLeJwC1eiq10tm-TT81YZ6osk/view?usp=sharing Fixes: 176901235,176992421,176884453 Test: manual Change-Id: Ie0575dc56c33c5d6ecd6c5cbf00666b96d6dcb16
This commit is contained in:
1 parent
6a5f431a7b
commit
b803f7e2cb
4 files changed
+14
-6
No files matched your search
@@ -38,6 +38,7 @@ import com.android.launcher3.logging.FileLog;
|
||||
import com.android.launcher3.model.data.ItemInfo;
|
||||
import com.android.launcher3.model.data.LauncherAppWidgetInfo;
|
||||
import com.android.launcher3.model.data.WorkspaceItemInfo;
|
||||
import com.android.launcher3.pm.PackageInstallInfo;
|
||||
import com.android.launcher3.pm.UserCache;
|
||||
import com.android.launcher3.shortcuts.ShortcutRequest;
|
||||
import com.android.launcher3.util.FlagOp;
|
||||
@@ -246,6 +247,7 @@ public class PackageUpdatedTask extends BaseModelUpdateTask {
|
||||
|
||||
if (isNewApkAvailable
|
||||
&& si.itemType == Favorites.ITEM_TYPE_APPLICATION) {
|
||||
si.setProgressLevel(100, PackageInstallInfo.STATUS_INSTALLED);
|
||||
iconCache.getTitleAndIcon(si, si.usingLowResIcon());
|
||||
infoUpdated = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user