mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Fixed list header when only suggestions
This commit is contained in:
parent
797418ce1a
commit
a481b5c6cd
1 changed files with 5 additions and 1 deletions
|
|
@ -52,7 +52,11 @@ class ContactsAndSuggestionsListAdapter(
|
|||
override fun getHeaderViewForPosition(context: Context, position: Int): View {
|
||||
val binding = StartCallSuggestionListDecorationBinding.inflate(LayoutInflater.from(context))
|
||||
binding.header.text = if (position == 0) {
|
||||
AppUtils.getString(R.string.history_call_start_contacts_list_title)
|
||||
if (getItemViewType(0) == SUGGESTION_TYPE) {
|
||||
AppUtils.getString(R.string.history_call_start_suggestions_list_title)
|
||||
} else {
|
||||
AppUtils.getString(R.string.history_call_start_contacts_list_title)
|
||||
}
|
||||
} else {
|
||||
AppUtils.getString(R.string.history_call_start_suggestions_list_title)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue