mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Merge "Reset the static preloaded icon result once launcher is hidden" into udc-dev
This commit is contained in:
@@ -1074,6 +1074,7 @@ public class Launcher extends StatefulActivity<LauncherState>
|
||||
logStopAndResume(false /* isResume */);
|
||||
mAppWidgetHolder.setActivityStarted(false);
|
||||
NotificationListener.removeNotificationsChangedListener(getPopupDataProvider());
|
||||
FloatingIconView.resetIconLoadResult();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user