summaryrefslogtreecommitdiffstats
path: root/src/com/cyanogenmod
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2015-01-29 15:50:31 -0800
committercretin45 <cretin45@gmail.com>2015-01-29 15:50:31 -0800
commit62406a3ced27eb90f7bbebc195c75dc9a5cfc3bc (patch)
tree20e29615488993eba47fddf963925578a3d0e84b /src/com/cyanogenmod
parentf76ee499de478f84c96145ceb92e2f01fbc0f76b (diff)
downloadpackages_apps_SetupWizard-62406a3ced27eb90f7bbebc195c75dc9a5cfc3bc.zip
packages_apps_SetupWizard-62406a3ced27eb90f7bbebc195c75dc9a5cfc3bc.tar.gz
packages_apps_SetupWizard-62406a3ced27eb90f7bbebc195c75dc9a5cfc3bc.tar.bz2
SetupWizard: If wifi doesn't return canceled, move to next
Change-Id: Ia52e73a7d85064e564c04d4962f3c0cd6dec2b0f
Diffstat (limited to 'src/com/cyanogenmod')
-rw-r--r--src/com/cyanogenmod/setupwizard/setup/WifiSetupPage.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/WifiSetupPage.java b/src/com/cyanogenmod/setupwizard/setup/WifiSetupPage.java
index 356c486..7f66789 100644
--- a/src/com/cyanogenmod/setupwizard/setup/WifiSetupPage.java
+++ b/src/com/cyanogenmod/setupwizard/setup/WifiSetupPage.java
@@ -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;
}