Smooth animation when dropping a widget in multi-window mode.
Factored in app widget scaling in methods related to estimating widget size and positions. ie. Dropping a widget that needs to be resized to fit in the workspace. Bug: 32176631 Change-Id: I106fe12041565a090047f146a07d4bc80a074b4a
This commit is contained in:
1 parent
8f03c86b3a
commit
e96798e885
8 files changed
+63
-31
No files matched your search
@@ -130,7 +130,7 @@ public class WidgetHostViewLoader implements DragController.DragListener {
|
||||
mWidgetLoadingId = -1;
|
||||
|
||||
hostView.setVisibility(View.INVISIBLE);
|
||||
int[] unScaledSize = mLauncher.getWorkspace().estimateItemSize(mInfo, false);
|
||||
int[] unScaledSize = mLauncher.getWorkspace().estimateItemSize(mInfo, false, true);
|
||||
// We want the first widget layout to be the correct size. This will be important
|
||||
// for width size reporting to the AppWidgetManager.
|
||||
DragLayer.LayoutParams lp = new DragLayer.LayoutParams(unScaledSize[0],
|
||||
|
||||
Reference in new issue
Block a user