Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7cfab69b authored by Jon Miranda's avatar Jon Miranda Committed by android-build-merger
Browse files

Fix BindWidgetTests.

am: 6ed68025

Change-Id: Ifca5fc650f88bd18985f264ccf4d0c33698faf52
parents c7083840 6ed68025
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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);