mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
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:
@@ -75,8 +75,8 @@ public class AppWidgetResizeFrame extends FrameLayout {
|
||||
mResizeMode = info.resizeMode;
|
||||
mDragLayer = dragLayer;
|
||||
|
||||
mMinHSpan = info.getMinSpanX(mLauncher);
|
||||
mMinVSpan = info.getMinSpanY(mLauncher);
|
||||
mMinHSpan = info.minSpanX;
|
||||
mMinVSpan = info.minSpanY;
|
||||
|
||||
setBackgroundResource(R.drawable.widget_resize_shadow);
|
||||
setForeground(getResources().getDrawable(R.drawable.widget_resize_frame));
|
||||
|
||||
Reference in New Issue
Block a user