mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Remove unused code in DeviceProfile.
Change-Id: I463302e6711ad39241257b8dff058d9f3e99d883
This commit is contained in:
@@ -116,10 +116,6 @@ public class DeviceProfile {
|
||||
public int allAppsIconDrawablePaddingPx;
|
||||
public float allAppsIconTextSizePx;
|
||||
|
||||
// Containers
|
||||
private final int containerLeftPaddingPx;
|
||||
private final int containerRightPaddingPx;
|
||||
|
||||
// Drop Target
|
||||
public int dropTargetBarSizePx;
|
||||
|
||||
@@ -184,10 +180,6 @@ public class DeviceProfile {
|
||||
hotseatBarTopPaddingPx =
|
||||
res.getDimensionPixelSize(R.dimen.dynamic_grid_hotseat_top_padding);
|
||||
hotseatLandGutterPx = res.getDimensionPixelSize(R.dimen.dynamic_grid_hotseat_gutter_width);
|
||||
containerLeftPaddingPx =
|
||||
res.getDimensionPixelSize(R.dimen.dynamic_grid_container_land_left_padding);
|
||||
containerRightPaddingPx =
|
||||
res.getDimensionPixelSize(R.dimen.dynamic_grid_container_land_right_padding);
|
||||
|
||||
// Determine sizes.
|
||||
widthPx = width;
|
||||
@@ -588,9 +580,7 @@ public class DeviceProfile {
|
||||
/**
|
||||
* @return the left/right paddings for all containers.
|
||||
*/
|
||||
public final int[] getContainerPadding(Context context) {
|
||||
Resources res = context.getResources();
|
||||
|
||||
public final int[] getContainerPadding() {
|
||||
// No paddings for portrait phone
|
||||
if (isPhone && !isVerticalBarLayout()) {
|
||||
return new int[] {0, 0};
|
||||
|
||||
Reference in New Issue
Block a user