Fix account type dialog re-creation on orientation change.

Bug: 4499512

Dummy activity that launches ChooseAccountActivity was re-launching it on orientation
changes. Make sure that it only launches it one time.

Change-Id: I764a59eaefc3ce4546330ed1b994d88b8703ce80
This commit is contained in:
Amith Yamasani
2011-06-02 18:05:40 -07:00
parent 8ac8456491
commit 7bb8f7288e
2 changed files with 3 additions and 1 deletions

View File

@@ -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 =