commit | d62e14e539588f99dff48a67a140153c6d92e265 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Wed May 16 15:45:13 2018 -0700 |
committer | Sunny Goyal <sunnygoyal@google.com> | Wed May 16 15:46:13 2018 -0700 |
tree | ce3a24d781ea5a1a17621e6e42d09df8c87977b7 | |
parent | 0d1db51ce858bcdbe92616460fca2122b9c81dfe [diff] |
Fixing taskView not centered properly in available width Bug: 79756414 Change-Id: Iec6b22f96f883d61f430599e34ff9ebe91d91924
diff --git a/quickstep/src/com/android/quickstep/util/LayoutUtils.java b/quickstep/src/com/android/quickstep/util/LayoutUtils.java index 574efff..ec9c7ea 100644 --- a/quickstep/src/com/android/quickstep/util/LayoutUtils.java +++ b/quickstep/src/com/android/quickstep/util/LayoutUtils.java
@@ -104,7 +104,7 @@ float outHeight = scale * taskHeight; // Center in the visible space - float x = insets.left + (taskWidth - outWidth) / 2; + float x = insets.left + (launcherVisibleWidth - outWidth) / 2; float y = insets.top + Math.max(topIconMargin, (launcherVisibleHeight - extraVerticalSpace - outHeight) / 2); outRect.set(Math.round(x), Math.round(y),