Calculating widget minSpans and spans statically/independent of orientation
> Filtering the widget list and excluding widgets which dont fit the grid > setting minSpans for the widget item when binding. Bug: 22541314 Bug: 22559137 Change-Id: Ieda48b56c95bee0c7ec71dd691af7e23e2d43db6
This commit is contained in:
1 parent
6eeab68fd4
commit
233ee964a9
11 files changed
+81
-149
No files matched your search
@@ -361,8 +361,8 @@ public class WidgetPreviewLoader {
|
||||
}
|
||||
|
||||
final boolean widgetPreviewExists = (drawable != null);
|
||||
final int spanX = info.getSpanX(launcher) < 1 ? 1 : info.getSpanX(launcher);
|
||||
final int spanY = info.getSpanY(launcher) < 1 ? 1 : info.getSpanY(launcher);
|
||||
final int spanX = info.spanX;
|
||||
final int spanY = info.spanY;
|
||||
|
||||
int previewWidth;
|
||||
int previewHeight;
|
||||
|
||||
Reference in new issue
Block a user