diff --git a/README.md b/README.md index e22df9b..72bbb56 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ public class UserNameStep extends Step { } @Override - public void restoreStepData(String stepData) { + protected void restoreStepData(String stepData) { // To restore the step after a configuration change, we restore the text of its EditText view. userNameView.setText(stepData); } diff --git a/app/src/main/java/verticalstepperform/ernestoyaquello/com/verticalstepperform/form/steps/AlarmDaysStep.java b/app/src/main/java/verticalstepperform/ernestoyaquello/com/verticalstepperform/form/steps/AlarmDaysStep.java index c388d29..9bb08e4 100644 --- a/app/src/main/java/verticalstepperform/ernestoyaquello/com/verticalstepperform/form/steps/AlarmDaysStep.java +++ b/app/src/main/java/verticalstepperform/ernestoyaquello/com/verticalstepperform/form/steps/AlarmDaysStep.java @@ -81,7 +81,7 @@ public String getStepDataAsHumanReadableString() { } @Override - public void restoreStepData(boolean[] data) { + protected void restoreStepData(boolean[] data) { alarmDays = data; setupAlarmDays(); } diff --git a/app/src/main/java/verticalstepperform/ernestoyaquello/com/verticalstepperform/form/steps/AlarmDescriptionStep.java b/app/src/main/java/verticalstepperform/ernestoyaquello/com/verticalstepperform/form/steps/AlarmDescriptionStep.java index 3dfeca4..6562bba 100644 --- a/app/src/main/java/verticalstepperform/ernestoyaquello/com/verticalstepperform/form/steps/AlarmDescriptionStep.java +++ b/app/src/main/java/verticalstepperform/ernestoyaquello/com/verticalstepperform/form/steps/AlarmDescriptionStep.java @@ -78,7 +78,7 @@ public String getStepDataAsHumanReadableString() { } @Override - public void restoreStepData(String data) { + protected void restoreStepData(String data) { if (alarmDescriptionEditText != null) { alarmDescriptionEditText.setText(data); } diff --git a/app/src/main/java/verticalstepperform/ernestoyaquello/com/verticalstepperform/form/steps/AlarmNameStep.java b/app/src/main/java/verticalstepperform/ernestoyaquello/com/verticalstepperform/form/steps/AlarmNameStep.java index 32ce5b2..bf2972c 100644 --- a/app/src/main/java/verticalstepperform/ernestoyaquello/com/verticalstepperform/form/steps/AlarmNameStep.java +++ b/app/src/main/java/verticalstepperform/ernestoyaquello/com/verticalstepperform/form/steps/AlarmNameStep.java @@ -96,7 +96,7 @@ public String getStepDataAsHumanReadableString() { } @Override - public void restoreStepData(String data) { + protected void restoreStepData(String data) { if (alarmNameEditText != null) { alarmNameEditText.setText(data); } diff --git a/app/src/main/java/verticalstepperform/ernestoyaquello/com/verticalstepperform/form/steps/AlarmTimeStep.java b/app/src/main/java/verticalstepperform/ernestoyaquello/com/verticalstepperform/form/steps/AlarmTimeStep.java index 0f4567a..ad55957 100644 --- a/app/src/main/java/verticalstepperform/ernestoyaquello/com/verticalstepperform/form/steps/AlarmTimeStep.java +++ b/app/src/main/java/verticalstepperform/ernestoyaquello/com/verticalstepperform/form/steps/AlarmTimeStep.java @@ -100,7 +100,7 @@ public String getStepDataAsHumanReadableString() { } @Override - public void restoreStepData(TimeHolder data) { + protected void restoreStepData(TimeHolder data) { alarmTimeHour = data.hour; alarmTimeMinutes = data.minutes; diff --git a/vertical-stepper-form/src/main/java/ernestoyaquello/com/verticalstepperform/Step.java b/vertical-stepper-form/src/main/java/ernestoyaquello/com/verticalstepperform/Step.java index 6f9e252..8176bbc 100644 --- a/vertical-stepper-form/src/main/java/ernestoyaquello/com/verticalstepperform/Step.java +++ b/vertical-stepper-form/src/main/java/ernestoyaquello/com/verticalstepperform/Step.java @@ -67,7 +67,7 @@ protected Step(String title, String subtitle, String nextButtonText) { * * @param data The step data to restore. */ - public abstract void restoreStepData(T data); + protected abstract void restoreStepData(T data); /** * Returns an instance of IsDataValid that indicates whether the step data is valid or not.