summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2012-03-08 11:03:42 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-03-08 11:03:42 -0800
commitb48b51362d22cc091869e8bc7c40b76c22ffc896 (patch)
tree390c8bc76baead0a442cc0d07aecab8aa5721c3d
parent2cc8f6215927157ebdf60a7cc636fe29d2d565b6 (diff)
parent18f252ff8b7f787fd3129706650eafb74fcabef4 (diff)
downloadpackages_apps_Browser-b48b51362d22cc091869e8bc7c40b76c22ffc896.zip
packages_apps_Browser-b48b51362d22cc091869e8bc7c40b76c22ffc896.tar.gz
packages_apps_Browser-b48b51362d22cc091869e8bc7c40b76c22ffc896.tar.bz2
Merge "handle locale changes directly in Browser"
-rw-r--r--AndroidManifest.xml2
-rw-r--r--src/com/android/browser/Controller.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 23bc975..0c2e6b3 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -66,7 +66,7 @@
android:label="@string/application_name"
android:launchMode="singleTask"
android:alwaysRetainTaskState="true"
- android:configChanges="orientation|keyboardHidden|keyboard|screenSize"
+ android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"
android:theme="@style/BrowserTheme"
android:windowSoftInputMode="adjustResize" >
<intent-filter>
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java
index 923dfed..0b49aff 100644
--- a/src/com/android/browser/Controller.java
+++ b/src/com/android/browser/Controller.java
@@ -604,6 +604,8 @@ public class Controller
protected void onConfgurationChanged(Configuration config) {
mConfigChanged = true;
+ // update the menu in case of a locale change
+ mActivity.invalidateOptionsMenu();
if (mPageDialogsHandler != null) {
mPageDialogsHandler.onConfigurationChanged(config);
}