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