Loading res/flag(com.android.documentsui.flags.use_material3)/layout/navigation_breadcrumb_item.xml +1 −1 Original line number Diff line number Diff line Loading @@ -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" Loading src/com/android/documentsui/HorizontalBreadcrumb.java +7 −0 Original line number Diff line number Diff line Loading @@ -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 Loading Loading
res/flag(com.android.documentsui.flags.use_material3)/layout/navigation_breadcrumb_item.xml +1 −1 Original line number Diff line number Diff line Loading @@ -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" Loading
src/com/android/documentsui/HorizontalBreadcrumb.java +7 −0 Original line number Diff line number Diff line Loading @@ -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 Loading