mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 19:38:21 +00:00
Merge "Fixing taskView not centered properly in available width" into ub-launcher3-edmonton
This commit is contained in:
committed by
Android (Google) Code Review
commit
8dcdcd9843
@@ -104,7 +104,7 @@ public class LayoutUtils {
|
||||
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),
|
||||
|
||||
Reference in New Issue
Block a user