diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2018-05-16 20:22:37 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-05-16 20:22:37 +0000 |
commit | c212649c13b0139f8f5f5214d45d501c36757de5 (patch) | |
tree | d830d7ce98767c17041ed136c535614184d5af0d /quickstep | |
parent | 6ae02c6a61e2d2c7014bd5f8b2a0266c5b802245 (diff) | |
parent | 55631dd8afbc52c83c50a5ade0fe28a454d86862 (diff) | |
download | android_packages_apps_Trebuchet-c212649c13b0139f8f5f5214d45d501c36757de5.tar.gz android_packages_apps_Trebuchet-c212649c13b0139f8f5f5214d45d501c36757de5.tar.bz2 android_packages_apps_Trebuchet-c212649c13b0139f8f5f5214d45d501c36757de5.zip |
Merge "Fixing task location calculation in seascape" into ub-launcher3-edmonton
Diffstat (limited to 'quickstep')
-rw-r--r-- | quickstep/src/com/android/quickstep/util/ClipAnimationHelper.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/quickstep/src/com/android/quickstep/util/ClipAnimationHelper.java b/quickstep/src/com/android/quickstep/util/ClipAnimationHelper.java index c28a6bdc6..8c7f104a6 100644 --- a/quickstep/src/com/android/quickstep/util/ClipAnimationHelper.java +++ b/quickstep/src/com/android/quickstep/util/ClipAnimationHelper.java @@ -259,10 +259,11 @@ public class ClipAnimationHelper { taskHeight = taskHeight / 2 - halfDividerSize; } + // Align the task to bottom left/right edge (closer to nav bar). + int left = activity.getDeviceProfile().isSeascape() ? insets.left + : (insets.left + fullDp.availableWidthPx - taskWidth); mSourceStackBounds.set(0, 0, taskWidth, taskHeight); - // Align the task to bottom right (probably not true for seascape). - mSourceStackBounds.offset(insets.left + fullDp.availableWidthPx - taskWidth, - insets.top + fullDp.availableHeightPx - taskHeight); + mSourceStackBounds.offset(left, insets.top + fullDp.availableHeightPx - taskHeight); } public void drawForProgress(TaskThumbnailView ttv, Canvas canvas, float progress) { |