Skip to content

Commit

Permalink
[DatePicker] Make header not focusable
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 642318050
  • Loading branch information
paulfthomas authored and pekingme committed Jun 11, 2024
1 parent 3a31eef commit 6862b6f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@
android:layout_weight="1"
android:paddingStart="@dimen/mtrl_calendar_header_text_padding"
android:paddingLeft="@dimen/mtrl_calendar_header_text_padding"
android:focusable="true"
android:focusableInTouchMode="true">
android:importantForAccessibility="yes"
android:focusable="false"
android:focusableInTouchMode="false">

<include layout="@layout/mtrl_picker_header_title_text"/>
<include layout="@layout/mtrl_picker_header_selection_text"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@
android:layout_weight="1"
android:paddingStart="@dimen/mtrl_calendar_header_text_padding"
android:paddingLeft="@dimen/mtrl_calendar_header_text_padding"
android:focusable="true"
android:focusableInTouchMode="true">
android:importantForAccessibility="yes"
android:focusable="false"
android:focusableInTouchMode="false">

<include layout="@layout/mtrl_picker_header_title_text"/>
<include layout="@layout/mtrl_picker_header_selection_text"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@
android:layout_weight="1"
android:paddingStart="@dimen/mtrl_calendar_header_text_padding"
android:paddingLeft="@dimen/mtrl_calendar_header_text_padding"
android:focusable="true"
android:focusableInTouchMode="true">
android:importantForAccessibility="yes"
android:focusable="false"
android:focusableInTouchMode="false">

<TextView
android:id="@+id/mtrl_picker_title_text"
Expand Down

0 comments on commit 6862b6f

Please sign in to comment.