SetupWizard: Fix double advance after adding account

Change-Id: I039f0c290c4ef539df16374cb1e6f2e7b49e41cd
This commit is contained in:
cretin45
2015-01-23 17:13:45 -08:00
parent dc8c56ba31
commit b7e0ddb233
3 changed files with 5 additions and 15 deletions

View File

@@ -76,7 +76,10 @@ public class CyanogenServicesPage extends SetupPage {
if (action == Page.ACTION_PREVIOUS) {
getCallbacks().onPreviousPage();
} else {
launchCyanogenAccountSetup(context);
if (!SetupWizardUtils.accountExists(mContext,
mContext.getString(R.string.cm_account_type))) {
launchCyanogenAccountSetup(context);
}
super.doLoadAction(context, action);
}
}