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

Commit 3626e708 authored by David Liu's avatar David Liu
Browse files

[CollapsingToolbar] Upstream G3 changes

- Add back CollapsingToolbarDelegate one parameter constructor to avoid breaking 1P apps dependencies.
- Add filterTouchesWhenObscured to base layout to avoid hijack.
- Suppress lint warnings.

Bug: 398320195
Change-Id: I9f841b9920aaa834e065e235f687b31183f016bc
Test: local build + presubmit
Flag: EXEMPT resources and annotation update
parent e8aa3de1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -19,7 +19,8 @@
    android:id="@+id/content_parent"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:fitsSystemWindows="true">
    android:fitsSystemWindows="true"
    android:filterTouchesWhenObscured="false">

    <include layout="@layout/non_collapsing_toolbar_content_layout"/>
</androidx.coordinatorlayout.widget.CoordinatorLayout>
+4 −0
Original line number Diff line number Diff line
@@ -89,6 +89,10 @@ public class CollapsingToolbarDelegate {

    private boolean mIsExpressiveTheme;

    public CollapsingToolbarDelegate(@NonNull HostCallback hostCallback) {
        this(hostCallback, /* useCollapsingToolbar= */ true);
    }

    public CollapsingToolbarDelegate(@NonNull HostCallback hostCallback,
            boolean useCollapsingToolbar) {
        mHostCallback = hostCallback;
+1 −0
Original line number Diff line number Diff line
@@ -105,6 +105,7 @@ public class CollapsingCoordinatorLayout extends CoordinatorLayout {
        return true;
    }

    @SuppressWarnings("RestrictTo")
    private void init() {
        int resId = SettingsThemeHelper.isExpressiveTheme(getContext())
                ? R.layout.settingslib_expressive_collapsing_toolbar_content_layout