fix saving the value
This commit is contained in:
parent
3d5afa77b0
commit
9860175196
|
@ -639,13 +639,18 @@ public class Options {
|
|||
|
||||
@Override
|
||||
public void clickListItem(int index) {
|
||||
val = index;
|
||||
Dancer.sliderMoverController = Dancer.sliderMovers[index];
|
||||
}
|
||||
|
||||
@Override
|
||||
public String write() {
|
||||
return String.valueOf(val);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void read(String s) {
|
||||
super.read(s);
|
||||
Dancer.sliderMoverController = Dancer.sliderMovers[val];
|
||||
Dancer.sliderMoverController = Dancer.sliderMovers[val = Integer.parseInt(s)];
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user