mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-12 10:32:36 +00:00
Try to fix
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
c2a4c6f006
commit
62147fb5f6
@ -570,6 +570,7 @@ public class ContactsController extends BaseController implements SearchView.OnQ
|
|||||||
adapter.onLoadMoreComplete(null);
|
adapter.onLoadMoreComplete(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getActivity().runOnUiThread(() -> {
|
||||||
searchItem.setVisible(newUserItemList.size() > 0);
|
searchItem.setVisible(newUserItemList.size() > 0);
|
||||||
swipeRefreshLayout.setRefreshing(false);
|
swipeRefreshLayout.setRefreshing(false);
|
||||||
|
|
||||||
@ -577,11 +578,13 @@ public class ContactsController extends BaseController implements SearchView.OnQ
|
|||||||
if (isNewConversationView) {
|
if (isNewConversationView) {
|
||||||
checkAndHandleBottomButtons();
|
checkAndHandleBottomButtons();
|
||||||
}
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(Throwable e) {
|
public void onError(Throwable e) {
|
||||||
|
getActivity().runOnUiThread(() -> {
|
||||||
if (searchItem != null) {
|
if (searchItem != null) {
|
||||||
searchItem.setVisible(false);
|
searchItem.setVisible(false);
|
||||||
}
|
}
|
||||||
@ -605,13 +608,16 @@ public class ContactsController extends BaseController implements SearchView.OnQ
|
|||||||
}
|
}
|
||||||
|
|
||||||
swipeRefreshLayout.setRefreshing(false);
|
swipeRefreshLayout.setRefreshing(false);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
dispose(contactsQueryDisposable);
|
dispose(contactsQueryDisposable);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onComplete() {
|
public void onComplete() {
|
||||||
swipeRefreshLayout.setRefreshing(false);
|
getActivity().runOnUiThread(() -> swipeRefreshLayout.setRefreshing(false));
|
||||||
dispose(contactsQueryDisposable);
|
dispose(contactsQueryDisposable);
|
||||||
alreadyFetching = false;
|
alreadyFetching = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user