Small fix

This commit is contained in:
M66B 2019-11-25 09:25:34 +01:00
parent bf0d25d181
commit 87746e2aa0
1 changed files with 2 additions and 3 deletions

View File

@ -3213,10 +3213,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
if (!loading && SimpleTask.getCount() == 0)
pbWait.setVisibility(View.GONE);
boolean none = (messages.size() == 0 && !loading);
tvNoEmail.setVisibility(none ? View.VISIBLE : View.GONE);
tvNoEmail.setVisibility(messages.size() == 0 ? View.VISIBLE : View.GONE);
tvNoEmailHint.setVisibility(
none && filterActive() && viewType != AdapterMessage.ViewType.SEARCH
messages.size() == 0 && filterActive() && viewType != AdapterMessage.ViewType.SEARCH
? View.VISIBLE : View.GONE);
grpReady.setVisibility(View.VISIBLE);