commit | d10ec34430a331e161fc0e42b92acae93e5998b0 | [log] [tgz] |
---|---|---|
author | Android Build Merger (Role) <noreply-android-build-merger@google.com> | Wed May 16 22:46:28 2018 +0000 |
committer | Android Build Merger (Role) <noreply-android-build-merger@google.com> | Wed May 16 22:46:28 2018 +0000 |
tree | 2c8d35e0dc12053a2b8b8762d5f78ff53ca0f442 | |
parent | 8fa24a1342b1b279e4fd1969bd8f5ac47d5f4dfd [diff] | |
parent | d62e14e539588f99dff48a67a140153c6d92e265 [diff] |
[automerger] Fixing taskView not centered properly in available width am: d62e14e539 Change-Id: I24fe5c927bf6990ac8b7ec53065d1938350c605c
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),