Fixing taskView not centered properly in available width
Bug: 79756414 Change-Id: Iec6b22f96f883d61f430599e34ff9ebe91d91924
This commit is contained in:
parent
0d1db51ce8
commit
d62e14e539
|
@ -104,7 +104,7 @@ public class LayoutUtils {
|
||||||
float outHeight = scale * taskHeight;
|
float outHeight = scale * taskHeight;
|
||||||
|
|
||||||
// Center in the visible space
|
// 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,
|
float y = insets.top + Math.max(topIconMargin,
|
||||||
(launcherVisibleHeight - extraVerticalSpace - outHeight) / 2);
|
(launcherVisibleHeight - extraVerticalSpace - outHeight) / 2);
|
||||||
outRect.set(Math.round(x), Math.round(y),
|
outRect.set(Math.round(x), Math.round(y),
|
||||||
|
|
Loading…
Reference in New Issue