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

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

Merge "[DocsUI M3] Fix breadcrumb display issue with large display size" into main

parents 38323b82 15c84c2f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@
    <com.google.android.material.textview.MaterialTextView
        android:id="@+id/breadcrumb_text"
        android:layout_width="wrap_content"
        android:layout_height="@dimen/breadcrumb_item_height"
        android:layout_height="wrap_content"
        android:focusable="true"
        android:clickable="true"
        android:maxWidth="275dp"
+7 −0
Original line number Diff line number Diff line
@@ -87,6 +87,13 @@ public final class HorizontalBreadcrumb extends RecyclerView implements Breadcru

        setLayoutManager(mLayoutManager);
        addOnItemTouchListener(new ClickListener(getContext(), this::onSingleTapUp));

        // When use_material3 flag is ON, the item is focusable but the whole row is not focusable.
        if (isUseMaterial3FlagEnabled()) {
            // Noe: setting this in the XML file via "android:focusable=false") somehow doesn't
            // work, i.e. the breadcrumb bar is still focusable, hence forcing it here in the code.
            setFocusable(false);
        }
    }

    @Override