mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
When adding or moving a resizable widget, the widget may resize
-> If a widget is resizable, and there is not enough room to add it in its current (or default) size, but can be scaled down to fit a certain area, it will be resized to fit the available space -> The resizing is animated using a crossfade and scale between the original dragView and the widget rendered in the final size Change-Id: I75db9dcabecce11598b3ae55f20b96b2ec6b7e87
This commit is contained in:
@@ -80,7 +80,7 @@ public class AppWidgetResizeFrame extends FrameLayout {
|
||||
mWorkspace = (Workspace) dragLayer.findViewById(R.id.workspace);
|
||||
|
||||
final AppWidgetProviderInfo info = widgetView.getAppWidgetInfo();
|
||||
int[] result = mLauncher.getMinResizeSpanForWidget(info, null);
|
||||
int[] result = mLauncher.getMinSpanForWidget(info, null);
|
||||
mMinHSpan = result[0];
|
||||
mMinVSpan = result[1];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user