Merge "Fixing crash when dragging and dropping a restored widget." into ub-launcher3-almonte

This commit is contained in:
Sunny Goyal
2015-02-17 20:34:55 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 5 deletions
+2 -3
View File
@@ -3177,9 +3177,8 @@ public class Workspace extends SmoothPagedView
// in its final location
final LauncherAppWidgetHostView hostView = (LauncherAppWidgetHostView) cell;
LauncherAppWidgetProviderInfo pInfo = (LauncherAppWidgetProviderInfo)
hostView.getAppWidgetInfo();
if (pInfo.resizeMode != AppWidgetProviderInfo.RESIZE_NONE) {
AppWidgetProviderInfo pInfo = hostView.getAppWidgetInfo();
if (pInfo != null && pInfo.resizeMode != AppWidgetProviderInfo.RESIZE_NONE) {
final Runnable addResizeFrame = new Runnable() {
public void run() {
DragLayer dragLayer = mLauncher.getDragLayer();