Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 248c575c authored by Mario Bertschler's avatar Mario Bertschler
Browse files

Fixes a bug to not be able to scroll widgets intoduced when enabling

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
parent 76891df7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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