tests added
This commit is contained in:
@@ -142,7 +142,7 @@ public final class CalculatorWizardActivity extends SherlockFragmentActivity {
|
||||
}
|
||||
}
|
||||
|
||||
private void finishFlow() {
|
||||
void finishFlow() {
|
||||
if (flow != null && step != null) {
|
||||
Wizard.saveWizardFinished(flow, step);
|
||||
}
|
||||
@@ -237,6 +237,18 @@ public final class CalculatorWizardActivity extends SherlockFragmentActivity {
|
||||
return flow;
|
||||
}
|
||||
|
||||
View getPrevButton() {
|
||||
return prevButton;
|
||||
}
|
||||
|
||||
View getNextButton() {
|
||||
return nextButton;
|
||||
}
|
||||
|
||||
View getFinishButton() {
|
||||
return finishButton;
|
||||
}
|
||||
|
||||
/*
|
||||
**********************************************************************
|
||||
*
|
||||
|
@@ -39,8 +39,8 @@ public final class Wizard {
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isWizardFinished(@Nonnull String name, @Nonnull Context context) {
|
||||
final SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);
|
||||
public static boolean isWizardFinished(@Nonnull String name) {
|
||||
final SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(CalculatorApplication.getInstance());
|
||||
return preferences.getBoolean(makeFlowFinishedPreferenceKey(name), false);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user