Browse Source

Fixed race condition search

main
M66B 6 years ago
parent
commit
d6970bb1bf
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java

+ 2
- 2
app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java View File

@ -80,7 +80,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
@Override @Override
public void onStateChanged(LifecycleOwner source, Lifecycle.Event event) { public void onStateChanged(LifecycleOwner source, Lifecycle.Event event) {
if (event == Lifecycle.Event.ON_DESTROY) if (event == Lifecycle.Event.ON_DESTROY)
new Thread(new Runnable() {
executor.submit(new Runnable() {
@Override @Override
public void run() { public void run() {
Log.i(Helper.TAG, "Boundary close"); Log.i(Helper.TAG, "Boundary close");
@ -95,7 +95,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
imessages = null; imessages = null;
} }
} }
}).start();
});
} }
}); });
} }


Loading…
Cancel
Save