summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2011-06-02 18:26:28 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-06-02 18:26:28 -0700
commit51a9d15722b3c94ac92e05b19048b678247b034e (patch)
tree1a93dd60215f28352478181be27f473cf7bb1ff8
parent9fc039e7bcea7f1845a51fcb70d608663ceec227 (diff)
parent7bb8f7288eaad7f6cedaea3b5c8dc48e4baa0a7f (diff)
downloadpackages_apps_settings-51a9d15722b3c94ac92e05b19048b678247b034e.zip
packages_apps_settings-51a9d15722b3c94ac92e05b19048b678247b034e.tar.gz
packages_apps_settings-51a9d15722b3c94ac92e05b19048b678247b034e.tar.bz2
Merge "Fix account type dialog re-creation on orientation change." into honeycomb-mr2
-rw-r--r--AndroidManifest.xml3
-rw-r--r--src/com/android/settings/accounts/AddAccountSettings.java1
2 files changed, 3 insertions, 1 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 38ebfed..54c29c1 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -1069,7 +1069,7 @@
<activity android:name="com.android.settings.accounts.AddAccountSettings"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
- android:configChanges="orientation|keyboardHidden"
+ android:configChanges="orientation|keyboardHidden|screenSize"
android:label="@string/header_add_an_account">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@@ -1080,6 +1080,7 @@
<activity android:name="com.android.settings.accounts.ChooseAccountActivity"
android:label="@string/header_add_an_account"
+ android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="@android:style/Theme.Holo.DialogWhenLarge"/>
<activity android:name=".CryptKeeper"
diff --git a/src/com/android/settings/accounts/AddAccountSettings.java b/src/com/android/settings/accounts/AddAccountSettings.java
index 4c5c0b8..72ef130 100644
--- a/src/com/android/settings/accounts/AddAccountSettings.java
+++ b/src/com/android/settings/accounts/AddAccountSettings.java
@@ -72,6 +72,7 @@ public class AddAccountSettings extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+
final String[] authorities =
getIntent().getStringArrayExtra(AccountPreferenceBase.AUTHORITIES_FILTER_KEY);
final String[] accountTypes =