mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Adding UI tests for various bind widget flows
Change-Id: I634302051886baee6b6424f69bc95db860b4823e
This commit is contained in:
@@ -363,7 +363,7 @@ public class AppWidgetResizeFrame extends FrameLayout implements View.OnKeyListe
|
||||
sTmpRect.right, sTmpRect.bottom);
|
||||
}
|
||||
|
||||
public static Rect getWidgetSizeRanges(Launcher launcher, int spanX, int spanY, Rect rect) {
|
||||
public static Rect getWidgetSizeRanges(Context context, int spanX, int spanY, Rect rect) {
|
||||
if (sCellSize == null) {
|
||||
InvariantDeviceProfile inv = LauncherAppState.getInstance().getInvariantDeviceProfile();
|
||||
|
||||
@@ -376,7 +376,7 @@ public class AppWidgetResizeFrame extends FrameLayout implements View.OnKeyListe
|
||||
if (rect == null) {
|
||||
rect = new Rect();
|
||||
}
|
||||
final float density = launcher.getResources().getDisplayMetrics().density;
|
||||
final float density = context.getResources().getDisplayMetrics().density;
|
||||
|
||||
// Compute landscape size
|
||||
int landWidth = (int) ((spanX * sCellSize[0].x) / density);
|
||||
|
||||
Reference in New Issue
Block a user