mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Revert "Add UI updates for incremental app installs."
This reverts commit 84269d349d.
Reason for revert: causes b/176884453 and b/176992421
Change-Id: I3398674a0acbad8329df5d341ae074ac073a6bf9
This commit is contained in:
@@ -69,7 +69,6 @@ import com.android.launcher3.logging.FileLog;
|
||||
import com.android.launcher3.model.data.AppInfo;
|
||||
import com.android.launcher3.model.data.FolderInfo;
|
||||
import com.android.launcher3.model.data.ItemInfo;
|
||||
import com.android.launcher3.model.data.ItemInfoWithIcon;
|
||||
import com.android.launcher3.model.data.LauncherAppWidgetInfo;
|
||||
import com.android.launcher3.model.data.PackageItemInfo;
|
||||
import com.android.launcher3.model.data.WorkspaceItemInfo;
|
||||
@@ -592,24 +591,11 @@ public class LoaderTask implements Runnable {
|
||||
if (c.restoreFlag != 0 && !TextUtils.isEmpty(targetPkg)) {
|
||||
tempPackageKey.update(targetPkg, c.user);
|
||||
SessionInfo si = installingPkgs.get(tempPackageKey);
|
||||
LauncherActivityInfo activityInfo =
|
||||
c.getLauncherActivityInfo();
|
||||
if (si == null) {
|
||||
info.runtimeStatusFlags &=
|
||||
~ItemInfoWithIcon.FLAG_INSTALL_SESSION_ACTIVE;
|
||||
} else if (activityInfo == null) {
|
||||
int installProgress = (int) (si.getProgress() * 100);
|
||||
|
||||
info.setProgressLevel(
|
||||
installProgress,
|
||||
PackageInstallInfo.STATUS_INSTALLING);
|
||||
} else {
|
||||
info.setProgressLevel(
|
||||
PackageManagerHelper
|
||||
.getLoadingProgress(activityInfo),
|
||||
PackageInstallInfo
|
||||
.STATUS_INSTALLED_DOWNLOADING);
|
||||
}
|
||||
if (si == null) {
|
||||
info.status &= ~WorkspaceItemInfo.FLAG_INSTALL_SESSION_ACTIVE;
|
||||
} else {
|
||||
info.setInstallProgress((int) (si.getProgress() * 100));
|
||||
}
|
||||
}
|
||||
|
||||
c.checkAndAddItem(info, mBgDataModel);
|
||||
|
||||
Reference in New Issue
Block a user