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

Commit 44c44f7b authored by Ben Kwa's avatar Ben Kwa Committed by Android (Google) Code Review
Browse files

Merge "DocumentsUI: Enable focus on directory contents."

parents 85161b23 641d53a7
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -15,6 +15,10 @@
-->

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item
        android:state_focused="true"
        android:color="@color/platform_blue_a200"
        android:alpha="0.1" />
    <item
        android:state_activated="true"
        android:color="?android:attr/colorAccent"
+4 −0
Original line number Diff line number Diff line
@@ -15,6 +15,10 @@
-->

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item
        android:state_focused="true"
        android:color="@color/platform_blue_a200"
        android:alpha="0.1" />
    <item
        android:state_activated="true"
        android:color="?android:attr/colorAccent"
+4 −0
Original line number Diff line number Diff line
@@ -873,6 +873,10 @@ public class DirectoryFragment extends Fragment {
        public DocumentHolder(View view) {
            super(view);
            this.view = view;
            // Setting this using android:focusable in the item layouts doesn't work for list items.
            // So we set it here.  Note that touch mode focus is a separate issue - see
            // View.setFocusableInTouchMode and View.isInTouchMode for more info.
            this.view.setFocusable(true);
        }
    }