kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix for possible issue in search.
rodzic
8543325d59
commit
cdd311f741
|
@ -89,7 +89,9 @@ class ConversationListSearchAdapter extends RecyclerView.Adapter<Conversation
|
|||
|
||||
@Override
|
||||
public long getHeaderId(int position) {
|
||||
if (getConversationResult(position) != null) {
|
||||
if (position < 0) {
|
||||
return StickyHeaderDecoration.StickyHeaderAdapter.NO_HEADER_ID;
|
||||
} else if (getConversationResult(position) != null) {
|
||||
return TYPE_CONVERSATIONS;
|
||||
} else if (getContactResult(position) != null) {
|
||||
return TYPE_CONTACTS;
|
||||
|
|
Ładowanie…
Reference in New Issue