Merge changes from topic "am-ddcee773-fe0b-4016-a107-9527fb3e33ad" into ub-launcher3-master
* changes:
[automerger] Fixing task location calculation in seascape am: 55631dd8af
Fixing task location calculation in seascape
This commit is contained in:
committed by
Android (Google) Code Review
commit
eb576f2518
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user