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

Commit 6ed68025 authored by Jon Miranda's avatar Jon Miranda
Browse files

Fix BindWidgetTests.

Broken by change I03c31bb308fc496b9fc633c2fde23ae4568f8c44.

Bug: 139281702
Test: Ran BindWidgetTest with 8/8 successful.
Change-Id: I6a03744c9cd919316ff27b12c50acc70c91d47fa
parent a24ed726
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -540,7 +540,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 {
@@ -634,8 +635,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);