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
diff --git a/quickstep/src/com/android/quickstep/views/RecentsView.java b/quickstep/src/com/android/quickstep/views/RecentsView.java
index 74906dd..a46bc6b 100644
--- a/quickstep/src/com/android/quickstep/views/RecentsView.java
+++ b/quickstep/src/com/android/quickstep/views/RecentsView.java
@@ -1358,7 +1358,7 @@
mOrientationHandler);
int taskWidth = mTempRect.width();
int taskHeight = mTempRect.height();
- if (mRunningTaskId != -1) {
+ if (mFocusedTaskId != -1) {
int boxLength = Math.max(taskWidth, taskHeight);
if (mFocusedTaskRatio > 1) {
taskWidth = boxLength;