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:
TreeHugger Robot
2020-01-29 03:06:04 +00:00
committed by Android (Google) Code Review
28 changed files with 513 additions and 110 deletions

View File

@@ -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);
}