mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-21 03:35:15 +01:00
add nullchecks since elements are annotated as nullable
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
34041b0358
commit
a247509aa1
@ -128,6 +128,7 @@ public class ContactsController extends BaseController implements SearchView.OnQ
|
|||||||
@BindView(R.id.loading_content)
|
@BindView(R.id.loading_content)
|
||||||
LinearLayout loadingContent;
|
LinearLayout loadingContent;
|
||||||
|
|
||||||
|
|
||||||
@BindView(R.id.recycler_view)
|
@BindView(R.id.recycler_view)
|
||||||
RecyclerView recyclerView;
|
RecyclerView recyclerView;
|
||||||
|
|
||||||
@ -152,9 +153,6 @@ public class ContactsController extends BaseController implements SearchView.OnQ
|
|||||||
@BindView(R.id.generic_rv_layout)
|
@BindView(R.id.generic_rv_layout)
|
||||||
CoordinatorLayout genericRvLayout;
|
CoordinatorLayout genericRvLayout;
|
||||||
|
|
||||||
@Inject
|
|
||||||
NcApi ncApi;
|
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
UserUtils userUtils;
|
UserUtils userUtils;
|
||||||
|
|
||||||
@ -164,6 +162,9 @@ public class ContactsController extends BaseController implements SearchView.OnQ
|
|||||||
@Inject
|
@Inject
|
||||||
AppPreferences appPreferences;
|
AppPreferences appPreferences;
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
NcApi ncApi;
|
||||||
|
|
||||||
private String credentials;
|
private String credentials;
|
||||||
private UserEntity currentUser;
|
private UserEntity currentUser;
|
||||||
private Disposable contactsQueryDisposable;
|
private Disposable contactsQueryDisposable;
|
||||||
@ -996,11 +997,19 @@ public class ContactsController extends BaseController implements SearchView.OnQ
|
|||||||
|
|
||||||
private void toggleNewCallHeaderVisibility(boolean showInitialLayout) {
|
private void toggleNewCallHeaderVisibility(boolean showInitialLayout) {
|
||||||
if (showInitialLayout) {
|
if (showInitialLayout) {
|
||||||
initialRelativeLayout.setVisibility(View.VISIBLE);
|
if (initialRelativeLayout != null) {
|
||||||
secondaryRelativeLayout.setVisibility(View.GONE);
|
initialRelativeLayout.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
|
if (secondaryRelativeLayout != null) {
|
||||||
|
secondaryRelativeLayout.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
initialRelativeLayout.setVisibility(View.GONE);
|
if (initialRelativeLayout != null) {
|
||||||
secondaryRelativeLayout.setVisibility(View.VISIBLE);
|
initialRelativeLayout.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
if (secondaryRelativeLayout != null) {
|
||||||
|
secondaryRelativeLayout.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user