OSDN Git Service

Fixes a bug to not be able to scroll widgets intoduced when enabling
authorMario Bertschler <bmario@google.com>
Tue, 24 Jan 2017 19:57:32 +0000 (11:57 -0800)
committerMario Bertschler <bmario@google.com>
Tue, 24 Jan 2017 20:01:44 +0000 (12:01 -0800)
to swipe allapps from everywhere.

The fix is to determine if the widget is scrollable on layouting instead
of the callback when a widget has been updated.

Bug: 34641906

Change-Id: Idc9d8ade7e601279b87856333ae754f4785131ac

src/com/android/launcher3/LauncherAppWidgetHostView.java

index 1429df5..61b8a7a 100644 (file)
@@ -135,8 +135,6 @@ public class LauncherAppWidgetHostView extends AppWidgetHostView
 
         // The provider info or the views might have changed.
         checkIfAutoAdvance();
-
-        mIsScrollable = checkScrollableRecursively(this);
     }
 
     private boolean checkScrollableRecursively(ViewGroup viewGroup) {
@@ -383,6 +381,8 @@ public class LauncherAppWidgetHostView extends AppWidgetHostView
                 }
             });
         }
+
+        mIsScrollable = checkScrollableRecursively(this);
     }
 
     @Override