mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-05 04:19:21 +01:00
Fixed displaying no messages while searching
This commit is contained in:
@@ -708,12 +708,15 @@ public class FragmentMessages extends FragmentEx {
|
||||
new BoundaryCallbackMessages.IBoundaryCallbackMessages() {
|
||||
@Override
|
||||
public void onLoading() {
|
||||
tvNoEmail.setVisibility(View.GONE);
|
||||
pbWait.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLoaded() {
|
||||
pbWait.setVisibility(View.GONE);
|
||||
if (searchCallback.getLoaded() == 0)
|
||||
tvNoEmail.setVisibility(View.VISIBLE);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -751,8 +754,9 @@ public class FragmentMessages extends FragmentEx {
|
||||
pbWait.setVisibility(View.GONE);
|
||||
grpReady.setVisibility(View.VISIBLE);
|
||||
|
||||
if (messages.size() == 0 && !searching) {
|
||||
tvNoEmail.setVisibility(View.VISIBLE);
|
||||
if (messages.size() == 0) {
|
||||
if (searchCallback == null)
|
||||
tvNoEmail.setVisibility(View.VISIBLE);
|
||||
rvMessage.setVisibility(View.GONE);
|
||||
} else {
|
||||
tvNoEmail.setVisibility(View.GONE);
|
||||
|
||||
Reference in New Issue
Block a user