mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
Overview - Remove the space withheld for proactive chips
Remove the space in the ui that was being used for chips. Centralize some of the logic around calculating the action margins to aid that. Bug: 179922117 Test: Local build and flash and run Change-Id: Icd2f894c858fab475c5411f3f7c412b899d5b220
This commit is contained in:
@@ -170,6 +170,8 @@ public class DeviceProfile {
|
||||
public int overviewTaskMarginPx;
|
||||
public int overviewTaskIconSizePx;
|
||||
public int overviewTaskThumbnailTopMarginPx;
|
||||
public final int overviewActionsMarginThreeButtonPx;
|
||||
public final int overviewActionsMarginGesturePx;
|
||||
|
||||
// Widgets
|
||||
public final PointF appWidgetScale = new PointF(1.0f, 1.0f);
|
||||
@@ -338,6 +340,10 @@ public class DeviceProfile {
|
||||
R.dimen.task_thumbnail_icon_size_grid) : res.getDimensionPixelSize(
|
||||
R.dimen.task_thumbnail_icon_size);
|
||||
overviewTaskThumbnailTopMarginPx = overviewTaskIconSizePx + overviewTaskMarginPx * 2;
|
||||
overviewActionsMarginGesturePx = res.getDimensionPixelSize(
|
||||
R.dimen.overview_actions_bottom_margin_gesture);
|
||||
overviewActionsMarginThreeButtonPx = res.getDimensionPixelSize(
|
||||
R.dimen.overview_actions_bottom_margin_three_button);
|
||||
|
||||
// Calculate all of the remaining variables.
|
||||
extraSpace = updateAvailableDimensions(res);
|
||||
|
||||
Reference in New Issue
Block a user