Fix NPE when entering account settings.

This commit is contained in:
Andrew Stadler 2009-09-18 15:13:12 -07:00
parent 91f12b8d52
commit cd1e207200

View File

@ -94,7 +94,7 @@ public class AccountSettings extends PreferenceActivity {
super.onCreate(savedInstanceState);
Intent i = getIntent();
if (i.getAction().equals(ACTION_ACCOUNT_MANAGER_ENTRY)) {
if (ACTION_ACCOUNT_MANAGER_ENTRY.equals(i.getAction())) {
// This case occurs if we're changing account settings from Settings -> Accounts
setAccountIdFromAccountManagerIntent();
} else {