Merge "Fixing task location calculation in seascape" into ub-launcher3-edmonton

This commit is contained in:
TreeHugger Robot 2018-05-16 20:22:37 +00:00 committed by Android (Google) Code Review
commit c212649c13
1 changed files with 4 additions and 3 deletions

View File

@ -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) {