mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01:00
Clean up
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
c5d3fd10c0
commit
01348f07ea
@ -570,7 +570,6 @@ 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);
|
||||||
|
|
||||||
@ -578,13 +577,12 @@ 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,11 +603,11 @@ public class ContactsController extends BaseController implements SearchView.OnQ
|
|||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
swipeRefreshLayout.setRefreshing(false);
|
swipeRefreshLayout.setRefreshing(false);
|
||||||
|
|
||||||
});
|
}
|
||||||
|
;
|
||||||
|
|
||||||
dispose(contactsQueryDisposable);
|
dispose(contactsQueryDisposable);
|
||||||
|
|
||||||
@ -617,7 +615,7 @@ public class ContactsController extends BaseController implements SearchView.OnQ
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onComplete() {
|
public void onComplete() {
|
||||||
getActivity().runOnUiThread(() -> swipeRefreshLayout.setRefreshing(false));
|
swipeRefreshLayout.setRefreshing(false);
|
||||||
dispose(contactsQueryDisposable);
|
dispose(contactsQueryDisposable);
|
||||||
alreadyFetching = false;
|
alreadyFetching = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user