diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2019-06-06 15:58:04 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-06-06 15:58:04 -0700 |
commit | bbbfc62c638fd7ed1d3cdb3348cedbb2f245f4a6 (patch) | |
tree | d5b6095d865f51eb18611af57ab03befe957ee39 /src | |
parent | 9788fbda66b96d1e72b66c45f669727ea02368ed (diff) | |
parent | 19f7c6fefb6b1d7d4951567a9744cb3209f43f35 (diff) | |
download | android_packages_apps_Trebuchet-bbbfc62c638fd7ed1d3cdb3348cedbb2f245f4a6.tar.gz android_packages_apps_Trebuchet-bbbfc62c638fd7ed1d3cdb3348cedbb2f245f4a6.tar.bz2 android_packages_apps_Trebuchet-bbbfc62c638fd7ed1d3cdb3348cedbb2f245f4a6.zip |
Merge "Disable seamless rotation for 3 and 2 button mode" into ub-launcher3-qt-dev
am: 19f7c6fefb
Change-Id: Iec2636f14a157e9a9b5e9c47e1c258b9158dc942
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher3/Launcher.java | 2 | ||||
-rw-r--r-- | src/com/android/launcher3/states/RotationHelper.java | 9 |
2 files changed, 8 insertions, 3 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index 855535b0f..1afbe0098 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -1063,7 +1063,7 @@ public class Launcher extends BaseDraggingActivity implements LauncherExterns, // Setup the drag layer mDragLayer.setup(mDragController, mWorkspace); - mCancelTouchController = UiFactory.enableLiveTouchControllerChanges(mDragLayer); + mCancelTouchController = UiFactory.enableLiveUIChanges(this); mWorkspace.setup(mDragController); // Until the workspace is bound, ensure that we keep the wallpaper offset locked to the diff --git a/src/com/android/launcher3/states/RotationHelper.java b/src/com/android/launcher3/states/RotationHelper.java index cd96d6ed8..abf90e22c 100644 --- a/src/com/android/launcher3/states/RotationHelper.java +++ b/src/com/android/launcher3/states/RotationHelper.java @@ -73,7 +73,8 @@ public class RotationHelper implements OnSharedPreferenceChangeListener { // This is used to defer setting rotation flags until the activity is being created private boolean mInitialized; - public boolean mDestroyed; + private boolean mDestroyed; + private boolean mRotationHasDifferentUI; private int mLastActivityFlags = -1; @@ -92,8 +93,12 @@ public class RotationHelper implements OnSharedPreferenceChangeListener { } } + public void setRotationHadDifferentUI(boolean rotationHasDifferentUI) { + mRotationHasDifferentUI = rotationHasDifferentUI; + } + public boolean homeScreenCanRotate() { - return mIgnoreAutoRotateSettings || mAutoRotateEnabled + return mRotationHasDifferentUI || mIgnoreAutoRotateSettings || mAutoRotateEnabled || mStateHandlerRequest != REQUEST_NONE || mLauncher.getDeviceProfile().isMultiWindowMode; } |