mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Merge changes from topic "state-supplier" into ub-launcher3-master
* changes: Translate recents slightly while dragging after pausing Two-zone model: swipe up from nav bar vs above it Change LauncherState to Supplier<LauncherState> in tests
This commit is contained in:
committed by
Android (Google) Code Review
commit
0618d689e8
@@ -381,7 +381,7 @@ public final class Utilities {
|
||||
return res.getConfiguration().getLayoutDirection() == View.LAYOUT_DIRECTION_RTL;
|
||||
}
|
||||
|
||||
public static float dpiFromPx(int size, DisplayMetrics metrics){
|
||||
public static float dpiFromPx(float size, DisplayMetrics metrics) {
|
||||
float densityRatio = (float) metrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT;
|
||||
return (size / densityRatio);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user