summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2012-08-03 13:48:39 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-08-03 13:48:39 -0700
commita6104e290aed6d7f83223946e6c199191e645ee5 (patch)
tree5f989b4b31e37280d2cfa7f48c3daa3394844d19
parentcb4a1e65ff9e416d5a6a56628cc8732aa5066761 (diff)
parent1637d6d64ac85d75b69b90fd976ed449046ccdc6 (diff)
downloadandroid_packages_apps_Trebuchet-a6104e290aed6d7f83223946e6c199191e645ee5.tar.gz
android_packages_apps_Trebuchet-a6104e290aed6d7f83223946e6c199191e645ee5.tar.bz2
android_packages_apps_Trebuchet-a6104e290aed6d7f83223946e6c199191e645ee5.zip
am 1637d6d6: Fix adding widgets without config activities
* commit '1637d6d64ac85d75b69b90fd976ed449046ccdc6': Fix adding widgets without config activities
-rw-r--r--src/com/android/launcher2/AppsCustomizePagedView.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/launcher2/AppsCustomizePagedView.java b/src/com/android/launcher2/AppsCustomizePagedView.java
index d52c384bd..48f56231b 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;