From 70392818f07f175d4914cef13b12c215ff08f1df Mon Sep 17 00:00:00 2001 From: Narayan Kamath Date: Mon, 23 Mar 2015 17:13:18 +0000 Subject: Don't set userSetLocale from Configuration.setLocale. This seems to have been a mistake : userSetLocale controls whether a locale is persisted and as written it's too easy to make system wide locale changes without intending to. Third party apps do not have sufficient permissions to set global locales anyway, so they won't care whether it's set or not. Also, set userSetLocale = true in the LocalePicker.updateLocale internal API, which is what all platform apps use to set the locale. In addition, this commit fixes a bug where we were not setting RTL directionality for the default locale loaded by the activity manager service. Change-Id: I2e11ad31e012dfa314ab8d78034f986b49ecae60 --- core/java/android/content/res/Configuration.java | 4 +--- core/java/com/android/internal/app/LocalePicker.java | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'core') diff --git a/core/java/android/content/res/Configuration.java b/core/java/android/content/res/Configuration.java index b5eeb30..bc6d4ce 100644 --- a/core/java/android/content/res/Configuration.java +++ b/core/java/android/content/res/Configuration.java @@ -1284,14 +1284,12 @@ public final class Configuration implements Parcelable, Comparable