Skip to content

Commit 1052890

Browse files
Piotr Zawadzkizawadz88
authored andcommitted
stepper type refactoring
1 parent 46ba710 commit 1052890

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

material-stepper/src/main/java/com/stepstone/stepper/StepperLayout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ public void setShowErrorState(boolean showErrorState) {
404404
*/
405405
public void updateErrorState(boolean hasError) {
406406
if (mShowErrorState) {
407-
mStepperType.setErrorStep(mCurrentStepPosition, hasError);
407+
mStepperType.setErrorState(mCurrentStepPosition, hasError);
408408
}
409409
}
410410

material-stepper/src/main/java/com/stepstone/stepper/internal/type/AbstractStepperType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public AbstractStepperType(StepperLayout stepperLayout) {
6363
* @param stepPosition the step to set the error
6464
* @param hasError whether it has error or not
6565
*/
66-
public void setErrorStep(int stepPosition, boolean hasError){ }
66+
public void setErrorState(int stepPosition, boolean hasError){ }
6767

6868
/**
6969
* Called to set whether navigating backwards should keep the error state.

material-stepper/src/main/java/com/stepstone/stepper/internal/type/TabsStepperType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public void onStepSelected(int newStepPosition) {
7070
* {@inheritDoc}
7171
*/
7272
@Override
73-
public void setErrorStep(int stepPosition, boolean hasError) {
73+
public void setErrorState(int stepPosition, boolean hasError) {
7474
mTabsContainer.setErrorStep(stepPosition, hasError);
7575
}
7676

0 commit comments

Comments
 (0)