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
This commit is contained in:
Mihai Nita
2017-02-01 11:40:11 -08:00
parent b5edf1a7a0
commit efede41864

View File

@@ -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() {