summaryrefslogtreecommitdiffstats
path: root/quickstep/src
diff options
context:
space:
mode:
authorTony <twickham@google.com>2019-05-13 13:39:07 -0500
committerTony <twickham@google.com>2019-05-13 14:11:51 -0500
commit8312866779168e65c7f9fe319016f70d2d567048 (patch)
tree68d164bb33dece36f7471e44f1a6f3bc2a2349d9 /quickstep/src
parentd849ef084c180c393c7f3c69f6f00a01358a644f (diff)
downloadandroid_packages_apps_Trebuchet-8312866779168e65c7f9fe319016f70d2d567048.tar.gz
android_packages_apps_Trebuchet-8312866779168e65c7f9fe319016f70d2d567048.tar.bz2
android_packages_apps_Trebuchet-8312866779168e65c7f9fe319016f70d2d567048.zip
Use device profile width instead of drag layer width for overview translation
This fixes the issue where overview doesn't come in from offscreen the first time you enter overview from home. Test: - Force stop launcher, quick switch from home - Force stop launcher, swipe up and hold Change-Id: Ia4dbd36267008bc199cff088833979606238d3eb
Diffstat (limited to 'quickstep/src')
-rw-r--r--quickstep/src/com/android/launcher3/uioverrides/UiFactory.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/quickstep/src/com/android/launcher3/uioverrides/UiFactory.java b/quickstep/src/com/android/launcher3/uioverrides/UiFactory.java
index 4f50cdb61..77ac35c50 100644
--- a/quickstep/src/com/android/launcher3/uioverrides/UiFactory.java
+++ b/quickstep/src/com/android/launcher3/uioverrides/UiFactory.java
@@ -194,7 +194,7 @@ public class UiFactory extends RecentsUiFactory {
public static ScaleAndTranslation getOverviewScaleAndTranslationForNormalState(Launcher l) {
if (SysUINavigationMode.getMode(l) == Mode.NO_BUTTON) {
- float offscreenTranslationX = l.getDragLayer().getWidth()
+ float offscreenTranslationX = l.getDeviceProfile().widthPx
- l.getOverviewPanel().getPaddingStart();
return new ScaleAndTranslation(1f, offscreenTranslationX, 0f);
}