diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index bf375d77e5..7e4300282d 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -1065,6 +1065,7 @@ public class Launcher extends StatefulActivity logStopAndResume(false /* isResume */); mAppWidgetHolder.setActivityStarted(false); NotificationListener.removeNotificationsChangedListener(getPopupDataProvider()); + FloatingIconView.resetIconLoadResult(); } @Override diff --git a/src/com/android/launcher3/views/FloatingIconView.java b/src/com/android/launcher3/views/FloatingIconView.java index 3b052210a4..f425821eea 100644 --- a/src/com/android/launcher3/views/FloatingIconView.java +++ b/src/com/android/launcher3/views/FloatingIconView.java @@ -571,6 +571,13 @@ public class FloatingIconView extends FrameLayout implements return result; } + /** + * Resets the static icon load result used for preloading the icon for a launching app. + */ + public static void resetIconLoadResult() { + sIconLoadResult = null; + } + /** * Creates a floating icon view for {@param originalView}. * @param originalView The view to copy @@ -608,7 +615,7 @@ public class FloatingIconView extends FrameLayout implements } view.setOriginalDrawableBackground(view.mIconLoadResult.btvDrawable); } - sIconLoadResult = null; + resetIconLoadResult(); // Match the position of the original view. view.matchPositionOf(launcher, originalView, isOpening, positionOut);