mirror of https://github.com/M66B/FairEmail.git
Auto close thread
This commit is contained in:
parent
07f6d33efd
commit
4e991b0bf7
|
@ -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…
Reference in New Issue