Fix for widgets with config not getting size info (issue 7266053)
Change-Id: I0b55555ed38d4f2a70345d1b6316a075a9346111
diff --git a/src/com/android/launcher2/PendingAddItemInfo.java b/src/com/android/launcher2/PendingAddItemInfo.java
index 9a133ed..a1e7b06 100644
--- a/src/com/android/launcher2/PendingAddItemInfo.java
+++ b/src/com/android/launcher2/PendingAddItemInfo.java
@@ -20,6 +20,7 @@
import android.appwidget.AppWidgetProviderInfo;
import android.content.ComponentName;
import android.content.pm.ActivityInfo;
+import android.os.Bundle;
import android.os.Parcelable;
/**
@@ -55,6 +56,7 @@
int icon;
AppWidgetProviderInfo info;
AppWidgetHostView boundWidget;
+ Bundle bindOptions = null;
// Any configuration data that we want to pass to a configuration activity when
// starting up a widget
@@ -95,6 +97,7 @@
spanY = copy.spanY;
minSpanX = copy.minSpanX;
minSpanY = copy.minSpanY;
+ bindOptions = copy.bindOptions == null ? null : (Bundle) copy.bindOptions.clone();
}
@Override