Do not update static lines

This commit is contained in:
Fabrizio La Rosa 2020-08-04 19:03:33 +02:00
parent 1123664ef6
commit 9c47619df4

View File

@ -19,12 +19,8 @@ class Row {
this.interval = interval; this.interval = interval;
this.current = 0; this.current = 0;
this.count = 0; this.count = 0;
if(interval < 0) { static_line = interval < 0 || lines.isEmpty() || lines.size() <= 1;
static_line = true;
} else {
static_line = false;
}
if(lines.isEmpty()) { if(lines.isEmpty()) {
line = ""; line = "";
@ -34,7 +30,7 @@ class Row {
} }
public void update() { public void update() {
if (!static_line && !lines.isEmpty()) { if (!static_line) {
if (count >= interval) { if (count >= interval) {
count = 0; count = 0;
current++; current++;