Loading core/java/com/android/internal/app/SuggestedLocaleAdapter.java +0 −7 Original line number Diff line number Diff line Loading @@ -287,7 +287,6 @@ public class SuggestedLocaleAdapter extends BaseAdapter implements Filterable { updatedView = mInflater.inflate( R.layout.app_language_picker_current_locale_item, parent, false); addStateDescriptionIntoCurrentLocaleItem(updatedView); } } else { shouldReuseView = convertView instanceof TextView Loading @@ -304,7 +303,6 @@ public class SuggestedLocaleAdapter extends BaseAdapter implements Filterable { if (!shouldReuseView) { updatedView = mInflater.inflate( R.layout.app_language_picker_current_locale_item, parent, false); addStateDescriptionIntoCurrentLocaleItem(updatedView); } break; default: Loading Loading @@ -441,9 +439,4 @@ public class SuggestedLocaleAdapter extends BaseAdapter implements Filterable { : View.TEXT_DIRECTION_LTR); } } private void addStateDescriptionIntoCurrentLocaleItem(View root) { String description = root.getContext().getResources().getString(R.string.checked); root.setStateDescription(description); } } core/res/res/layout/app_language_picker_current_locale_item.xml +2 −1 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/ic_check_24dp" app:tint="?attr/colorAccentPrimaryVariant"/> app:tint="?attr/colorAccentPrimaryVariant" android:contentDescription="@*android:string/checked"/> </LinearLayout> </LinearLayout> Loading
core/java/com/android/internal/app/SuggestedLocaleAdapter.java +0 −7 Original line number Diff line number Diff line Loading @@ -287,7 +287,6 @@ public class SuggestedLocaleAdapter extends BaseAdapter implements Filterable { updatedView = mInflater.inflate( R.layout.app_language_picker_current_locale_item, parent, false); addStateDescriptionIntoCurrentLocaleItem(updatedView); } } else { shouldReuseView = convertView instanceof TextView Loading @@ -304,7 +303,6 @@ public class SuggestedLocaleAdapter extends BaseAdapter implements Filterable { if (!shouldReuseView) { updatedView = mInflater.inflate( R.layout.app_language_picker_current_locale_item, parent, false); addStateDescriptionIntoCurrentLocaleItem(updatedView); } break; default: Loading Loading @@ -441,9 +439,4 @@ public class SuggestedLocaleAdapter extends BaseAdapter implements Filterable { : View.TEXT_DIRECTION_LTR); } } private void addStateDescriptionIntoCurrentLocaleItem(View root) { String description = root.getContext().getResources().getString(R.string.checked); root.setStateDescription(description); } }
core/res/res/layout/app_language_picker_current_locale_item.xml +2 −1 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ android:layout_width="24dp" android:layout_height="24dp" android:src="@drawable/ic_check_24dp" app:tint="?attr/colorAccentPrimaryVariant"/> app:tint="?attr/colorAccentPrimaryVariant" android:contentDescription="@*android:string/checked"/> </LinearLayout> </LinearLayout>