OSDN Git Service

Fix crash caused by double loading of widget previews
authorMichael Jurka <mikejurka@google.com>
Wed, 6 Feb 2013 12:43:54 +0000 (13:43 +0100)
committerMichael Jurka <mikejurka@google.com>
Wed, 6 Feb 2013 12:59:10 +0000 (13:59 +0100)
Bug: 8146408

src/com/android/launcher2/AppsCustomizePagedView.java

index 82d595b..4ff799f 100644 (file)
@@ -1242,6 +1242,7 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
                                 maxPreviewWidth, maxPreviewHeight, mWidgetCountX);
                     }
                 }
+                layout.setOnLayoutListener(null);
             }
         });
     }