diff options
author | vadimt <vadimt@google.com> | 2019-05-08 15:29:37 -0700 |
---|---|---|
committer | vadimt <vadimt@google.com> | 2019-05-08 17:20:34 -0700 |
commit | 1b383af65211c57dce66349e13cf7b6123bddbc7 (patch) | |
tree | 9a7428cc4a54fbee6b71361cd231b23989d794c6 /src/com/android/launcher3/widget | |
parent | e627accf264f75bfa70f8df12c10292b23ef0a12 (diff) | |
download | android_packages_apps_Trebuchet-1b383af65211c57dce66349e13cf7b6123bddbc7.tar.gz android_packages_apps_Trebuchet-1b383af65211c57dce66349e13cf7b6123bddbc7.tar.bz2 android_packages_apps_Trebuchet-1b383af65211c57dce66349e13cf7b6123bddbc7.zip |
Not using magic constants for navbar height
Change-Id: I6783b8a2ebb059ce35748d8c3e818cbe732ff40d
Diffstat (limited to 'src/com/android/launcher3/widget')
-rw-r--r-- | src/com/android/launcher3/widget/WidgetsBottomSheet.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/widget/WidgetsBottomSheet.java b/src/com/android/launcher3/widget/WidgetsBottomSheet.java index 3e2c0aef4..a7078a2f5 100644 --- a/src/com/android/launcher3/widget/WidgetsBottomSheet.java +++ b/src/com/android/launcher3/widget/WidgetsBottomSheet.java @@ -36,7 +36,7 @@ import com.android.launcher3.Insettable; import com.android.launcher3.ItemInfo; import com.android.launcher3.LauncherAppState; import com.android.launcher3.R; -import com.android.launcher3.Utilities; +import com.android.launcher3.ResourceUtils; import com.android.launcher3.anim.Interpolators; import com.android.launcher3.model.WidgetItem; import com.android.launcher3.util.PackageUserKey; @@ -126,7 +126,7 @@ public class WidgetsBottomSheet extends BaseWidgetSheet implements Insettable { // Otherwise, add an empty view to the start as padding (but still scroll edge to edge). View leftPaddingView = LayoutInflater.from(getContext()).inflate( R.layout.widget_list_divider, widgetRow, false); - leftPaddingView.getLayoutParams().width = Utilities.pxFromDp( + leftPaddingView.getLayoutParams().width = ResourceUtils.pxFromDp( 16, getResources().getDisplayMetrics()); widgetCells.addView(leftPaddingView, 0); } |