Loading quickstep/src/com/android/launcher3/taskbar/TaskbarManager.java +6 −1 Original line number Diff line number Diff line Loading @@ -168,9 +168,14 @@ public class TaskbarManager { DeviceProfile oldDp = mTaskbarActivityContext.getDeviceProfile(); boolean isOrientationChange = (configDiff & ActivityInfo.CONFIG_ORIENTATION) != 0; int newOrientation = newConfig.windowConfiguration.getRotation(); int oldOrientation = mOldConfig.windowConfiguration.getRotation(); int oldWidth = isOrientationChange ? oldDp.heightPx : oldDp.widthPx; int oldHeight = isOrientationChange ? oldDp.widthPx : oldDp.heightPx; if (dp.widthPx == oldWidth && dp.heightPx == oldHeight) { if ((dp.widthPx == oldWidth && dp.heightPx == oldHeight) || (newOrientation == oldOrientation)) { configDiffForRecreate &= ~ActivityInfo.CONFIG_SCREEN_SIZE; } } Loading Loading
quickstep/src/com/android/launcher3/taskbar/TaskbarManager.java +6 −1 Original line number Diff line number Diff line Loading @@ -168,9 +168,14 @@ public class TaskbarManager { DeviceProfile oldDp = mTaskbarActivityContext.getDeviceProfile(); boolean isOrientationChange = (configDiff & ActivityInfo.CONFIG_ORIENTATION) != 0; int newOrientation = newConfig.windowConfiguration.getRotation(); int oldOrientation = mOldConfig.windowConfiguration.getRotation(); int oldWidth = isOrientationChange ? oldDp.heightPx : oldDp.widthPx; int oldHeight = isOrientationChange ? oldDp.widthPx : oldDp.heightPx; if (dp.widthPx == oldWidth && dp.heightPx == oldHeight) { if ((dp.widthPx == oldWidth && dp.heightPx == oldHeight) || (newOrientation == oldOrientation)) { configDiffForRecreate &= ~ActivityInfo.CONFIG_SCREEN_SIZE; } } Loading