DO NOT MERGE
Use focused task id for getting task size When getting the selected task size, look at the focused task id, not the running task id. I believe this was a typo from the original change. Bug: 190399315 Test: Local build and flash and run Change-Id: Ice92e0562765f4f0142e27da0c38140df4c11425
This commit is contained in:
@@ -1358,7 +1358,7 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
|
|||||||
mOrientationHandler);
|
mOrientationHandler);
|
||||||
int taskWidth = mTempRect.width();
|
int taskWidth = mTempRect.width();
|
||||||
int taskHeight = mTempRect.height();
|
int taskHeight = mTempRect.height();
|
||||||
if (mRunningTaskId != -1) {
|
if (mFocusedTaskId != -1) {
|
||||||
int boxLength = Math.max(taskWidth, taskHeight);
|
int boxLength = Math.max(taskWidth, taskHeight);
|
||||||
if (mFocusedTaskRatio > 1) {
|
if (mFocusedTaskRatio > 1) {
|
||||||
taskWidth = boxLength;
|
taskWidth = boxLength;
|
||||||
|
|||||||
Reference in New Issue
Block a user