Merge "Pin desktop tile to the right in overview" into tm-qpr-dev

This commit is contained in:
Ats Jenk
2023-02-06 20:01:24 +00:00
committed by Android (Google) Code Review
4 changed files with 74 additions and 19 deletions

View File

@@ -1033,6 +1033,11 @@ public class TaskView extends FrameLayout implements Reusable {
return deviceProfile.isTablet && !isFocusedTask();
}
/** Whether this task view represents the desktop */
public boolean isDesktopTask() {
return false;
}
/**
* Called to animate a smooth transition when going directly from an app into Overview (and
* vice versa). Icons fade in, and DWB banners slide in with a "shift up" animation.
@@ -1543,7 +1548,7 @@ public class TaskView extends FrameLayout implements Reusable {
int boxWidth;
int boxHeight;
boolean isFocusedTask = isFocusedTask();
if (isFocusedTask) {
if (isFocusedTask || isDesktopTask()) {
// Task will be focused and should use focused task size. Use focusTaskRatio
// that is associated with the original orientation of the focused task.
boxWidth = taskWidth;