diff --git a/res/layout/locale_drag_cell.xml b/res/layout/locale_drag_cell.xml index 247cfd22591..f5a280b82b9 100644 --- a/res/layout/locale_drag_cell.xml +++ b/res/layout/locale_drag_cell.xml @@ -15,21 +15,24 @@ --> + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="?android:listPreferredItemHeight" + android:background="?android:colorBackground" + android:layout_marginTop="12dp" + android:layout_marginBottom="12dp" + android:layoutDirection="locale" + android:textDirection="locale"> + android:layout_toStartOf="@+id/dragHandle" + android:layout_alignTop="@+id/miniLabel" + android:layout_alignBottom="@+id/miniLabel" /> + android:layout_centerVertical="true"/> - - + + - + - + - + + + android:layout_centerVertical="true"/> - - - + \ No newline at end of file diff --git a/res/values/strings.xml b/res/values/strings.xml index 197672db02f..c0585623226 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -368,7 +368,7 @@ To select a language for each app, go to app language settings. - Learn more about languages + Learn more about app languages https://support.google.com/android?p=per_language_app_settings diff --git a/src/com/android/settings/localepicker/LocaleDragAndDropAdapter.java b/src/com/android/settings/localepicker/LocaleDragAndDropAdapter.java index bece4140153..958001eeea9 100644 --- a/src/com/android/settings/localepicker/LocaleDragAndDropAdapter.java +++ b/src/com/android/settings/localepicker/LocaleDragAndDropAdapter.java @@ -165,7 +165,7 @@ class LocaleDragAndDropAdapter dragCell.setLabelAndDescription(label, description); dragCell.setLocalized(feedItem.isTranslated()); - dragCell.setCurrentDefault(feedItem.getLocale().equals(Locale.getDefault())); + dragCell.setCurrentDefault(feedItem.getLocale().equals(LocalePicker.getLocales().get(0))); dragCell.setMiniLabel(mNumberFormatter.format(i + 1)); dragCell.setShowCheckbox(mRemoveMode); dragCell.setShowMiniLabel(!mRemoveMode);