Waiting for server

pull/212/head
M66B 2 years ago
parent 2f1199674c
commit a59f82feea

@ -6861,10 +6861,12 @@ public class FragmentMessages extends FragmentBase
(language_detection && !TextUtils.isEmpty(filter_language) && !outbox));
boolean none = (items == 0 && initialized);
boolean searching = (viewType == AdapterMessage.ViewType.SEARCH && server && loading && items == 0);
boolean filtered = (filter_active && viewType != AdapterMessage.ViewType.SEARCH);
pbWait.setVisibility(loading || tasks > 0 ? View.VISIBLE : View.GONE);
tvNoEmail.setVisibility(none ? View.VISIBLE : View.GONE);
tvNoEmail.setText(searching ? R.string.title_search_server_wait : R.string.title_no_messages);
tvNoEmail.setVisibility(none || searching ? View.VISIBLE : View.GONE);
tvNoEmailHint.setVisibility(none && filtered ? View.VISIBLE : View.GONE);
if (BuildConfig.DEBUG)

@ -1775,6 +1775,7 @@
<string name="title_search_device">Search on device</string>
<string name="title_search_server">Search on server</string>
<string name="title_search_server_wait">Waiting for server</string>
<string name="title_search_in">Search in</string>
<string name="title_search_sender">Search for sender</string>

Loading…
Cancel
Save