Austin Huang
4 years ago
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
1 changed files with
2 additions and
1 deletions
-
app/src/main/java/awais/instagrabber/fragments/UserSearchFragment.kt
|
@ -208,7 +208,8 @@ class UserSearchFragment : Fragment() { |
|
|
if (childCount == 0) return null |
|
|
if (childCount == 0) return null |
|
|
for (i in childCount - 1 downTo 0) { |
|
|
for (i in childCount - 1 downTo 0) { |
|
|
val child = binding.group.getChildAt(i) ?: continue |
|
|
val child = binding.group.getChildAt(i) ?: continue |
|
|
val tag = child.tag as RankedRecipient |
|
|
|
|
|
|
|
|
val tempTag = child.tag ?: continue |
|
|
|
|
|
val tag = tempTag as RankedRecipient |
|
|
if (isUser && tag.user == null || !isUser && tag.thread == null) continue |
|
|
if (isUser && tag.user == null || !isUser && tag.thread == null) continue |
|
|
if (isUser && tag.user?.pk == recipient.user?.pk || !isUser && tag.thread?.threadId == recipient.thread?.threadId) { |
|
|
if (isUser && tag.user?.pk == recipient.user?.pk || !isUser && tag.thread?.threadId == recipient.thread?.threadId) { |
|
|
return child |
|
|
return child |
|
|