Skip to content

Commit

Permalink
Restricted method visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestoyaquello committed Jan 13, 2022
1 parent 22aafda commit 4a81685
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public class UserNameStep extends Step<String> {
}

@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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public String getStepDataAsHumanReadableString() {
}

@Override
public void restoreStepData(boolean[] data) {
protected void restoreStepData(boolean[] data) {
alarmDays = data;
setupAlarmDays();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public String getStepDataAsHumanReadableString() {
}

@Override
public void restoreStepData(String data) {
protected void restoreStepData(String data) {
if (alarmDescriptionEditText != null) {
alarmDescriptionEditText.setText(data);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public String getStepDataAsHumanReadableString() {
}

@Override
public void restoreStepData(String data) {
protected void restoreStepData(String data) {
if (alarmNameEditText != null) {
alarmNameEditText.setText(data);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public String getStepDataAsHumanReadableString() {
}

@Override
public void restoreStepData(TimeHolder data) {
protected void restoreStepData(TimeHolder data) {
alarmTimeHour = data.hour;
alarmTimeMinutes = data.minutes;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4a81685

Please sign in to comment.