Once is enough

pull/194/merge
M66B 3 years ago
parent 648b218abf
commit f419b32b0a

@ -1371,8 +1371,14 @@ public class FragmentCompose extends FragmentBase {
state = State.NONE; state = State.NONE;
Runnable load = new Runnable() { Runnable load = new Runnable() {
private boolean once = false;
@Override @Override
public void run() { public void run() {
if (once)
return;
once = true;
try { try {
if (savedInstanceState == null) { if (savedInstanceState == null) {
if (working < 0) { if (working < 0) {
@ -1445,7 +1451,8 @@ public class FragmentCompose extends FragmentBase {
} }
@Override @Override
public void onError(Exception e) { public void onError(Exception ex) {
Log.i(ex.getMessage());
load.run(); load.run();
} }
}); });

Loading…
Cancel
Save