fix: 0号位状态时向前切换失效.
This commit is contained in:
@@ -129,7 +129,7 @@ public abstract class AbstractStateManager<S> implements StateManager<S> {
|
|||||||
@SuppressWarnings("all")
|
@SuppressWarnings("all")
|
||||||
protected void prev() {
|
protected void prev() {
|
||||||
if (--index < 0)
|
if (--index < 0)
|
||||||
index = 0;
|
index = stateList.size() - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user