diff options
author | cretin45 <cretin45@gmail.com> | 2015-01-28 21:32:50 -0800 |
---|---|---|
committer | cretin45 <cretin45@gmail.com> | 2015-01-28 21:35:59 -0800 |
commit | f76ee499de478f84c96145ceb92e2f01fbc0f76b (patch) | |
tree | 4b267c74d268b787d388272541035790057ccc4d /src/com/cyanogenmod/setupwizard/setup/AbstractSetupData.java | |
parent | c3d44b4b83c61c1c36cafed6f9f3066afe70195e (diff) | |
download | packages_apps_SetupWizard-f76ee499de478f84c96145ceb92e2f01fbc0f76b.zip packages_apps_SetupWizard-f76ee499de478f84c96145ceb92e2f01fbc0f76b.tar.gz packages_apps_SetupWizard-f76ee499de478f84c96145ceb92e2f01fbc0f76b.tar.bz2 |
SetupWizard: Refactor page completed to hidden
Change-Id: Ia5e84c52a711767e539adcc3b1a2fdc5d5a27b13
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/setup/AbstractSetupData.java')
-rw-r--r-- | src/com/cyanogenmod/setupwizard/setup/AbstractSetupData.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/cyanogenmod/setupwizard/setup/AbstractSetupData.java b/src/com/cyanogenmod/setupwizard/setup/AbstractSetupData.java index c388eef..add42c9 100644 --- a/src/com/cyanogenmod/setupwizard/setup/AbstractSetupData.java +++ b/src/com/cyanogenmod/setupwizard/setup/AbstractSetupData.java @@ -84,7 +84,7 @@ public abstract class AbstractSetupData implements SetupDataCallbacks { @Override public void onNextPage() { if (getCurrentPage().doNextAction() == false) { - if (advanceToNextUncompleted()) { + if (advanceToNextUnhidden()) { for (int i = 0; i < mListeners.size(); i++) { mListeners.get(i).onNextPage(); } @@ -95,7 +95,7 @@ public abstract class AbstractSetupData implements SetupDataCallbacks { @Override public void onPreviousPage() { if (getCurrentPage().doPreviousAction() == false) { - if (advanceToPreviousUncompleted()) { + if (advanceToPreviousUnhidden()) { for (int i = 0; i < mListeners.size(); i++) { mListeners.get(i).onPreviousPage(); } @@ -103,20 +103,20 @@ public abstract class AbstractSetupData implements SetupDataCallbacks { } } - private boolean advanceToNextUncompleted() { + private boolean advanceToNextUnhidden() { while (mCurrentPageIndex < mPageList.size()) { mCurrentPageIndex++; - if (!getCurrentPage().isCompleted()) { + if (!getCurrentPage().isHidden()) { return true; } } return false; } - private boolean advanceToPreviousUncompleted() { + private boolean advanceToPreviousUnhidden() { while (mCurrentPageIndex > 0) { mCurrentPageIndex--; - if (!getCurrentPage().isCompleted()) { + if (!getCurrentPage().isHidden()) { return true; } } |