mirror of
https://github.com/Dark98/SliceBeam.git
synced 2026-12-06 05:37:16 +00:00
Friendly error page for web panel
This commit is contained in:
1 parent
e1fe683154
commit
6bb8926fb7
8 files changed
+115
-37
No files matched your search
@@ -6,6 +6,7 @@ import org.json.JSONObject;
|
||||
import ru.ytkab0bp.slicebeam.BeamServerData;
|
||||
import ru.ytkab0bp.slicebeam.SliceBeam;
|
||||
import ru.ytkab0bp.slicebeam.utils.Prefs;
|
||||
import ru.ytkab0bp.slicebeam.utils.ViewUtils;
|
||||
|
||||
public class BeamServerDataTask extends BootTask {
|
||||
public BeamServerDataTask() {
|
||||
@@ -16,7 +17,7 @@ public class BeamServerDataTask extends BootTask {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
if (System.currentTimeMillis() - Prefs.getLastCheckedInfo() >= 86400000L) {
|
||||
BeamServerData.load();
|
||||
ViewUtils.postOnMainThread(BeamServerData::load);
|
||||
}
|
||||
});
|
||||
onWorker();
|
||||
|
||||
Reference in new issue
Block a user