From b9ec9319c5534cf6ebd8df2ee1144e1ebb477c33 Mon Sep 17 00:00:00 2001 From: Vinit Nayak Date: Wed, 4 Mar 2020 12:05:28 -0800 Subject: [PATCH] Add fixed_rotation_transform to home settings This sets the feature flag on launcher side and also updates the setting in Settings.Global Launcher DOES NOT listen to the Settings.Global change from adb anymore. This should take preference over setting it from command line. Also fix a related swipe to home animation bug that happened w/ merge conflict. Fixes: 150260456 Test: Set and unset, visually verified behavior. Tested w/ autorotate on and off. Checked Settings.Global value correctly updated via "adb shell settings get global fixed_rotation_transform" TODO: Update tests to reflect this new default-on fixed rotation behavior. Change-Id: Id95f006eb1e92a59e24b05567298fd21b1409b13 --- AndroidManifest-common.xml | 4 +- quickstep/AndroidManifest.xml | 1 + .../android/quickstep/BaseSwipeUpHandler.java | 8 +- .../quickstep/TouchInteractionService.java | 6 +- .../quickstep/views/LauncherRecentsView.java | 4 +- .../android/quickstep/views/RecentsView.java | 12 ++- .../OrientationTouchTransformer.java | 14 ++- .../RecentsAnimationDeviceState.java | 56 ++++++---- src/com/android/launcher3/PagedView.java | 4 - src/com/android/launcher3/Utilities.java | 16 +-- .../launcher3/config/FeatureFlags.java | 6 ++ .../model/PagedViewOrientedState.java | 22 ++-- .../launcher3/states/RotationHelper.java | 100 ++++++++++++------ 13 files changed, 162 insertions(+), 91 deletions(-) diff --git a/AndroidManifest-common.xml b/AndroidManifest-common.xml index 6d105ac4fc..c7a02536d2 100644 --- a/AndroidManifest-common.xml +++ b/AndroidManifest-common.xml @@ -46,7 +46,9 @@ - + + +