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

Commit e6fef1fe authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Re-enable the scrolling behaviour for the drawer layout" into main

parents 56685040 a838a19e
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -23,17 +23,12 @@
    android:layout_height="wrap_content"
    android:touchscreenBlocksFocus="false">

    <!-- Technically we don't need this CollapsingToolbarLayout wrapper when use_material3 flag
         is ON, because we don't want to hide anything in the app header area when scrolling, but
         some files (e.g. NavigationViewManager and others) uses the existence of this element to
         do some specific logic, hence leaving it here with "noScroll" behavior.
     -->
    <com.google.android.material.appbar.CollapsingToolbarLayout
        android:id="@+id/collapsing_toolbar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:titleEnabled="false"
        app:layout_scrollFlags="noScroll">
        app:layout_scrollFlags="scroll|enterAlways|enterAlwaysCollapsed">

        <LinearLayout
            android:layout_width="match_parent"
@@ -57,7 +52,8 @@
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            android:touchscreenBlocksFocus="false">
            android:touchscreenBlocksFocus="false"
            app:layout_collapseMode="pin">

            <com.google.android.material.textview.MaterialTextView
                android:id="@+id/searchbar_title"
+1 −4
Original line number Diff line number Diff line
@@ -304,10 +304,7 @@ public class NavigationViewManager extends SelectionTracker.SelectionObserver<St
    }

    public void update() {
        // If use_material3 flag is ON, we don't want any scroll behavior, thus skipping this logic.
        if (!isUseMaterial3FlagEnabled()) {
        updateScrollFlag();
        }
        updateToolbar();
        mProfileTabs.updateView();