From efede418646d05edee8d9938b52d5461c4c5b687 Mon Sep 17 00:00:00 2001 From: Mihai Nita Date: Wed, 1 Feb 2017 11:40:11 -0800 Subject: [PATCH] Fix for Developer-Force RTL removing the locale list Bug: 34359287 Test: manual - added 3 locales, enabled RTL, and checked that the list did not change Change-Id: I90753ab495fca24d2bfceed10dea363eb8d194a2 --- src/com/android/settings/DevelopmentSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/DevelopmentSettings.java b/src/com/android/settings/DevelopmentSettings.java index abf015433a5..7f6f93afef9 100644 --- a/src/com/android/settings/DevelopmentSettings.java +++ b/src/com/android/settings/DevelopmentSettings.java @@ -1434,7 +1434,7 @@ public class DevelopmentSettings extends RestrictedSettingsFragment Settings.Global.putInt(getActivity().getContentResolver(), Settings.Global.DEVELOPMENT_FORCE_RTL, value ? 1 : 0); SystemProperties.set(Settings.Global.DEVELOPMENT_FORCE_RTL, value ? "1" : "0"); - LocalePicker.updateLocale(getActivity().getResources().getConfiguration().locale); + LocalePicker.updateLocales(getActivity().getResources().getConfiguration().getLocales()); } private void updateWifiDisplayCertificationOptions() {