Browse Source

Auto close thread

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

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

@ -646,7 +646,8 @@ public class FragmentMessages extends FragmentEx {
messages.observe(getViewLifecycleOwner(), new Observer<PagedList<TupleMessageEx>>() { messages.observe(getViewLifecycleOwner(), new Observer<PagedList<TupleMessageEx>>() {
@Override @Override
public void onChanged(@Nullable PagedList<TupleMessageEx> messages) { public void onChanged(@Nullable PagedList<TupleMessageEx> messages) {
if (messages == null) {
if (messages == null ||
(viewType == AdapterMessage.ViewType.THREAD && messages.size() == 0)) {
finish(); finish();
return; return;
} }


Loading…
Cancel
Save