summaryrefslogtreecommitdiffstats
path: root/go/quickstep
diff options
context:
space:
mode:
authorKevin <kevhan@google.com>2019-04-18 17:17:06 -0700
committerKevin Han <kevhan@google.com>2019-04-23 19:27:30 +0000
commit5f4e2fead06e6e81584220a1903a05ad96c5519e (patch)
tree93e5b13510e3d7da50b9c1f156764b2c53cbfebb /go/quickstep
parent6af38e14aa07cd673f43326b528605469b172e30 (diff)
downloadandroid_packages_apps_Trebuchet-5f4e2fead06e6e81584220a1903a05ad96c5519e.tar.gz
android_packages_apps_Trebuchet-5f4e2fead06e6e81584220a1903a05ad96c5519e.tar.bz2
android_packages_apps_Trebuchet-5f4e2fead06e6e81584220a1903a05ad96c5519e.zip
Enable landscape mode for Recents Go.
Set rotate state to request rotate on the overview state being enabled Bug: 114136250 Test: Go to recents go, rotate screen Test: Go to recents from app Change-Id: If63bf25f61b873f67986e463a980e6d67a9b5ae4 (cherry picked from 20e1f17340c14ff35549e9490da6f75bfe906d44)
Diffstat (limited to 'go/quickstep')
-rw-r--r--go/quickstep/src/com/android/launcher3/uioverrides/states/OverviewState.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/go/quickstep/src/com/android/launcher3/uioverrides/states/OverviewState.java b/go/quickstep/src/com/android/launcher3/uioverrides/states/OverviewState.java
index 6730e975e..d20910fd2 100644
--- a/go/quickstep/src/com/android/launcher3/uioverrides/states/OverviewState.java
+++ b/go/quickstep/src/com/android/launcher3/uioverrides/states/OverviewState.java
@@ -18,6 +18,7 @@ package com.android.launcher3.uioverrides.states;
import static com.android.launcher3.LauncherAnimUtils.OVERVIEW_TRANSITION_MS;
import static com.android.launcher3.anim.Interpolators.DEACCEL_2;
+import static com.android.launcher3.states.RotationHelper.REQUEST_ROTATE;
import com.android.launcher3.DeviceProfile;
import com.android.launcher3.Launcher;
@@ -51,6 +52,9 @@ public class OverviewState extends LauncherState {
public void onStateEnabled(Launcher launcher) {
IconRecentsView recentsView = launcher.getOverviewPanel();
recentsView.onBeginTransitionToOverview();
+ // Request orientation be set to unspecified, letting the system decide the best
+ // orientation.
+ launcher.getRotationHelper().setCurrentStateRequest(REQUEST_ROTATE);
}
@Override