Adding UI tests for various bind widget flows

Change-Id: I634302051886baee6b6424f69bc95db860b4823e
This commit is contained in:
Sunny Goyal committed 2016-03-15 15:34:25 -07:00
1 parent 77b3e1a57b
commit 16466f1bbb
7 files changed
+447 -11

No files matched your search

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