SetupWizard: If wifi doesn't return canceled, move to next

Change-Id: Ia52e73a7d85064e564c04d4962f3c0cd6dec2b0f
This commit is contained in:
cretin45 2015-01-29 15:50:31 -08:00
parent f76ee499de
commit 62406a3ced

View File

@ -73,10 +73,10 @@ public class WifiSetupPage extends SetupPage {
@Override
public boolean onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode != SetupWizardApp.REQUEST_CODE_SETUP_WIFI) return false;
if (resultCode == Activity.RESULT_OK || resultCode == Activity.RESULT_FIRST_USER) {
getCallbacks().onNextPage();
} else if (resultCode == Activity.RESULT_CANCELED) {
if (resultCode == Activity.RESULT_CANCELED) {
getCallbacks().onPreviousPage();
} else {
getCallbacks().onNextPage();
}
return true;
}