Fix typo in settings.

This was causing a crash in settings when opening an incoming settings
fragment after initial setup.

Change-Id: Icedd24a3f5e8f378d6725a09c97525450ef74af7
This commit is contained in:
Ben Komalo 2011-05-20 11:52:13 -07:00
parent c5bbf134ea
commit ee97468feb

View File

@ -546,7 +546,7 @@ public class AccountSettings extends PreferenceActivity {
AccountSettingsFragment asf = (AccountSettingsFragment) f;
asf.setCallback(mAccountSettingsFragmentCallback);
} else if (f instanceof AccountServerBaseFragment) {
AccountServerBaseFragment asbf = (AccountServerBaseFragment) mCurrentFragment;
AccountServerBaseFragment asbf = (AccountServerBaseFragment) f;
asbf.setCallback(mAccountServerSettingsFragmentCallback);
} else {
// Possibly uninteresting fragment, such as a dialog.