mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-21 11:45:03 +01:00
Always show searchItem
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
30497f1174
commit
660b2be745
@ -380,7 +380,6 @@ public class ContactsController extends BaseController implements SearchView.OnQ
|
|||||||
@Override
|
@Override
|
||||||
public void onPrepareOptionsMenu(@NonNull Menu menu) {
|
public void onPrepareOptionsMenu(@NonNull Menu menu) {
|
||||||
super.onPrepareOptionsMenu(menu);
|
super.onPrepareOptionsMenu(menu);
|
||||||
searchItem.setVisible(contactItems.size() > 0);
|
|
||||||
checkAndHandleDoneMenuItem();
|
checkAndHandleDoneMenuItem();
|
||||||
if (adapter.hasFilter()) {
|
if (adapter.hasFilter()) {
|
||||||
searchItem.expandActionView();
|
searchItem.expandActionView();
|
||||||
@ -601,10 +600,6 @@ public class ContactsController extends BaseController implements SearchView.OnQ
|
|||||||
adapter.onLoadMoreComplete(null);
|
adapter.onLoadMoreComplete(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (searchItem != null) {
|
|
||||||
searchItem.setVisible(newUserItemList.size() > 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (swipeRefreshLayout != null) {
|
if (swipeRefreshLayout != null) {
|
||||||
swipeRefreshLayout.setRefreshing(false);
|
swipeRefreshLayout.setRefreshing(false);
|
||||||
}
|
}
|
||||||
@ -614,10 +609,6 @@ public class ContactsController extends BaseController implements SearchView.OnQ
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onError(Throwable e) {
|
public void onError(Throwable e) {
|
||||||
if (searchItem != null) {
|
|
||||||
searchItem.setVisible(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (e instanceof HttpException) {
|
if (e instanceof HttpException) {
|
||||||
HttpException exception = (HttpException) e;
|
HttpException exception = (HttpException) e;
|
||||||
switch (exception.code()) {
|
switch (exception.code()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user