Merge "Fix widget jump bug when moved to invalid place" into tm-qpr-dev am: 00d27d25da
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19559931 Change-Id: I20dcf8548fc96814c371a6885140029b16bd51f2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -2122,7 +2122,8 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
|
||||
final ItemInfo info = (ItemInfo) cell.getTag();
|
||||
boolean isWidget = info.itemType == LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET
|
||||
|| info.itemType == LauncherSettings.Favorites.ITEM_TYPE_CUSTOM_APPWIDGET;
|
||||
if (isWidget) {
|
||||
if (isWidget && dropTargetLayout != null) {
|
||||
// animate widget to a valid place
|
||||
int animationType = resizeOnDrop ? ANIMATE_INTO_POSITION_AND_RESIZE :
|
||||
ANIMATE_INTO_POSITION_AND_DISAPPEAR;
|
||||
animateWidgetDrop(info, parent, d.dragView, null, animationType, cell, false);
|
||||
|
||||
Reference in New Issue
Block a user