diff options
author | Michael Jurka <mikejurka@google.com> | 2012-08-03 13:35:01 -0700 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2012-08-03 13:36:12 -0700 |
commit | 1637d6d64ac85d75b69b90fd976ed449046ccdc6 (patch) | |
tree | 5f989b4b31e37280d2cfa7f48c3daa3394844d19 | |
parent | 8a7d620aa0ad7bada6f50b757d1bc328db1fe257 (diff) | |
download | packages_apps_trebuchet-1637d6d64ac85d75b69b90fd976ed449046ccdc6.zip packages_apps_trebuchet-1637d6d64ac85d75b69b90fd976ed449046ccdc6.tar.gz packages_apps_trebuchet-1637d6d64ac85d75b69b90fd976ed449046ccdc6.tar.bz2 |
Fix adding widgets without config activities
- only affected Launcher when it wasn't on the
system partition
Change-Id: Ia36d5a05463d7d3af0718cf694a0692a5098fc76
-rw-r--r-- | src/com/android/launcher2/AppsCustomizePagedView.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/launcher2/AppsCustomizePagedView.java b/src/com/android/launcher2/AppsCustomizePagedView.java index d52c384..48f5623 100644 --- a/src/com/android/launcher2/AppsCustomizePagedView.java +++ b/src/com/android/launcher2/AppsCustomizePagedView.java @@ -639,6 +639,9 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen mInflateWidgetRunnable = new Runnable() { @Override public void run() { + if (mWidgetCleanupState != WIDGET_BOUND) { + return; + } AppWidgetHostView hostView = mLauncher. getAppWidgetHost().createView(getContext(), mWidgetLoadingId, pInfo); info.boundWidget = hostView; |