mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 19:38:21 +00:00
Fix BindWidgetTests.
am: 6ed680258e
Change-Id: Ifca5fc650f88bd18985f264ccf4d0c33698faf52
This commit is contained in:
@@ -555,7 +555,8 @@ public class LoaderTask implements Runnable {
|
||||
}
|
||||
|
||||
if (c.restoreFlag != 0 && !TextUtils.isEmpty(targetPkg)) {
|
||||
SessionInfo si = installingPkgs.get(targetPkg);
|
||||
tempPackageKey.update(targetPkg, c.user);
|
||||
SessionInfo si = installingPkgs.get(tempPackageKey);
|
||||
if (si == null) {
|
||||
info.status &= ~WorkspaceItemInfo.FLAG_INSTALL_SESSION_ACTIVE;
|
||||
} else {
|
||||
@@ -656,8 +657,10 @@ public class LoaderTask implements Runnable {
|
||||
appWidgetInfo = new LauncherAppWidgetInfo(appWidgetId,
|
||||
component);
|
||||
appWidgetInfo.restoreStatus = c.restoreFlag;
|
||||
|
||||
tempPackageKey.update(component.getPackageName(), c.user);
|
||||
SessionInfo si =
|
||||
installingPkgs.get(component.getPackageName());
|
||||
installingPkgs.get(tempPackageKey);
|
||||
Integer installProgress = si == null
|
||||
? null
|
||||
: (int) (si.getProgress() * 100);
|
||||
|
||||
Reference in New Issue
Block a user