fix saving the value

This commit is contained in:
yugecin 2016-11-12 18:25:25 +01:00
parent 3d5afa77b0
commit 9860175196

View File

@ -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)];
}
},