Commit d20479ec authored by Toni Beier's avatar Toni Beier

The status screen of the ongoing configuration is leavable

parent 065774ef
Pipeline #24739 passed with stages
in 2 minutes and 57 seconds
......@@ -160,6 +160,8 @@ public class MainActivity extends AppCompatActivity {
if (inInstall) {
Helper.getInstallStatus(this);
synchronized (this) {
if (timer == null) {
timer = new Timer(true);
timer.schedule(new TimerTask() {
......@@ -175,6 +177,8 @@ public class MainActivity extends AppCompatActivity {
});
}
}, 1000, 2000);
}
}
} else {
......@@ -289,6 +293,12 @@ public class MainActivity extends AppCompatActivity {
private void btn_exit_click() {
inInstall = false;
synchronized (this) {
if (timer != null) {
timer.cancel();
timer = null;
}
}
recomputeLayout();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment