Fix issue where corp app widget doesn't show correctly on drop targets.
b/22535234 Change-Id: I6e57c7728704ad0f99df25257211243a23d26acd
This commit is contained in:
1 parent
633ce45b05
commit
ffd0ab4da1
1 file changed
+2
@@ -23,6 +23,7 @@ import com.android.launcher3.Launcher;
|
||||
import com.android.launcher3.LauncherAppWidgetProviderInfo;
|
||||
import com.android.launcher3.LauncherSettings;
|
||||
import com.android.launcher3.PendingAddItemInfo;
|
||||
import com.android.launcher3.compat.AppWidgetManagerCompat;
|
||||
|
||||
/**
|
||||
* Meta data used for late binding of {@link LauncherAppWidgetProviderInfo}.
|
||||
@@ -47,6 +48,7 @@ public class PendingAddWidgetInfo extends PendingAddItemInfo {
|
||||
itemType = LauncherSettings.Favorites.ITEM_TYPE_APPWIDGET;
|
||||
}
|
||||
this.info = i;
|
||||
user = AppWidgetManagerCompat.getInstance(launcher).getUser(i);
|
||||
componentName = i.provider;
|
||||
minWidth = i.minWidth;
|
||||
minHeight = i.minHeight;
|
||||
|
||||
Reference in new issue
Block a user