Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2018-06-12 10:07:27 +02:00
parent c5d3fd10c0
commit 01348f07ea

View File

@ -570,7 +570,6 @@ public class ContactsController extends BaseController implements SearchView.OnQ
adapter.onLoadMoreComplete(null);
}
getActivity().runOnUiThread(() -> {
searchItem.setVisible(newUserItemList.size() > 0);
swipeRefreshLayout.setRefreshing(false);
@ -578,13 +577,12 @@ public class ContactsController extends BaseController implements SearchView.OnQ
if (isNewConversationView) {
checkAndHandleBottomButtons();
}
});
}
;
}
@Override
public void onError(Throwable e) {
getActivity().runOnUiThread(() -> {
if (searchItem != null) {
searchItem.setVisible(false);
}
@ -605,11 +603,11 @@ public class ContactsController extends BaseController implements SearchView.OnQ
default:
break;
}
}
swipeRefreshLayout.setRefreshing(false);
});
}
;
dispose(contactsQueryDisposable);
@ -617,7 +615,7 @@ public class ContactsController extends BaseController implements SearchView.OnQ
@Override
public void onComplete() {
getActivity().runOnUiThread(() -> swipeRefreshLayout.setRefreshing(false));
swipeRefreshLayout.setRefreshing(false);
dispose(contactsQueryDisposable);
alreadyFetching = false;