mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 22:51:02 +00:00
Once is enough
This commit is contained in:
parent
648b218abf
commit
f419b32b0a
1 changed files with 8 additions and 1 deletions
|
@ -1371,8 +1371,14 @@ public class FragmentCompose extends FragmentBase {
|
|||
state = State.NONE;
|
||||
|
||||
Runnable load = new Runnable() {
|
||||
private boolean once = false;
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
if (once)
|
||||
return;
|
||||
once = true;
|
||||
|
||||
try {
|
||||
if (savedInstanceState == null) {
|
||||
if (working < 0) {
|
||||
|
@ -1445,7 +1451,8 @@ public class FragmentCompose extends FragmentBase {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onError(Exception e) {
|
||||
public void onError(Exception ex) {
|
||||
Log.i(ex.getMessage());
|
||||
load.run();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue