Fix for widgets with config not getting size info (issue 7266053)

Change-Id: I0b55555ed38d4f2a70345d1b6316a075a9346111
This commit is contained in:
Adam Cohen committed 2012-10-04 16:53:44 -07:00
1 parent a2042d0ae9
commit dd70d66852
3 files changed
+19 -3

No files matched your search

@@ -628,7 +628,10 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
private void preloadWidget(final PendingAddWidgetInfo info) {
final AppWidgetProviderInfo pInfo = info.info;
final Bundle options = getDefaultOptionsForWidget(mLauncher, info);
if (pInfo.configure != null) {
info.bindOptions = options;
return;
}
@@ -637,8 +640,6 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
@Override
public void run() {
mWidgetLoadingId = mLauncher.getAppWidgetHost().allocateAppWidgetId();
Bundle options = getDefaultOptionsForWidget(mLauncher, info);
// Options will be null for platforms with JB or lower, so this serves as an
// SDK level check.
if (options == null) {