Loading src/com/android/launcher3/Launcher.java +7 −1 Original line number Diff line number Diff line Loading @@ -1551,7 +1551,13 @@ public class Launcher extends StatefulActivity<LauncherState> LauncherAppWidgetInfo launcherInfo, CellPos presenterPos) { CellLayout cellLayout = getCellLayout(launcherInfo.container, presenterPos.screenId); if (mStateManager.getState() == NORMAL) { // We should wait until launcher is not animating to show resize frame so that // {@link View#hasIdentityMatrix()} returns true (no scale effect) from CellLayout and // Workspace (they are widget's parent view). Otherwise widget's // {@link View#getLocationInWindow(int[])} will set skewed location, causing resize // frame not showing at skewed location in // {@link AppWidgetResizeFrame#snapToWidget(boolean)}. if (mStateManager.getState() == NORMAL && !mStateManager.isInTransition()) { AppWidgetResizeFrame.showForWidget(launcherHostView, cellLayout); } else { mStateManager.addStateListener(new StateManager.StateListener<LauncherState>() { Loading Loading
src/com/android/launcher3/Launcher.java +7 −1 Original line number Diff line number Diff line Loading @@ -1551,7 +1551,13 @@ public class Launcher extends StatefulActivity<LauncherState> LauncherAppWidgetInfo launcherInfo, CellPos presenterPos) { CellLayout cellLayout = getCellLayout(launcherInfo.container, presenterPos.screenId); if (mStateManager.getState() == NORMAL) { // We should wait until launcher is not animating to show resize frame so that // {@link View#hasIdentityMatrix()} returns true (no scale effect) from CellLayout and // Workspace (they are widget's parent view). Otherwise widget's // {@link View#getLocationInWindow(int[])} will set skewed location, causing resize // frame not showing at skewed location in // {@link AppWidgetResizeFrame#snapToWidget(boolean)}. if (mStateManager.getState() == NORMAL && !mStateManager.isInTransition()) { AppWidgetResizeFrame.showForWidget(launcherHostView, cellLayout); } else { mStateManager.addStateListener(new StateManager.StateListener<LauncherState>() { Loading