Fixed small bug with tp debug UI

This commit is contained in:
Zukero
2018-08-04 21:00:36 +02:00
parent 6c5513cdac
commit a32fdbd6f3

View File

@@ -51,6 +51,9 @@ public final class DebugInterface {
for (int i = 1; i < buttons.length; i++) {
buttons[i].b.setVisibility(hidden ? View.GONE : View.VISIBLE);
}
for (DebugButton b : tpButtons) {
b.b.setVisibility(View.GONE);
}
}
})
,new DebugButton("tp", new OnClickListener() {
@@ -138,7 +141,6 @@ public final class DebugInterface {
})
}));
tpButtons = new ArrayList<DebugButton>();
tpButtons.addAll(Arrays.asList(new DebugButton[] {
new DebugButton("tp", new OnClickListener() {
@Override