reload sb settings when deleting a setting
This commit is contained in:
parent
1786e74a51
commit
3812742b76
|
@ -161,11 +161,14 @@ public class SBOverlay {
|
||||||
private void goBackOneSBIndex() {
|
private void goBackOneSBIndex() {
|
||||||
if (index + 1 < optionsMap.length && optionsMap[index + 1] != null) {
|
if (index + 1 < optionsMap.length && optionsMap[index + 1] != null) {
|
||||||
// new options on previous index, so to revert then we have to reload them all to this point..
|
// new options on previous index, so to revert then we have to reload them all to this point..
|
||||||
final int thisIndex = index;
|
reloadSBsettingsToIndex(index);
|
||||||
for (int i = 0; i <= thisIndex; i++) {
|
|
||||||
updateIndex(i);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void reloadSBsettingsToIndex(final int index) {
|
||||||
|
for (int i = 0; i <= index; i++) {
|
||||||
|
updateIndex(i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setMusicPosition() {
|
private void setMusicPosition() {
|
||||||
|
@ -236,6 +239,7 @@ public class SBOverlay {
|
||||||
if (optionsMap[index].size() == 0) {
|
if (optionsMap[index].size() == 0) {
|
||||||
optionsMap[index] = null;
|
optionsMap[index] = null;
|
||||||
}
|
}
|
||||||
|
reloadSBsettingsToIndex(index);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
ypos += lh;
|
ypos += lh;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user