mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-20 12:49:02 +00:00
Merge pull request #1979 from Hafizzle/Fiz/fix-duplicate-inapp-notifications
Fix duplicate in-app notification views
This commit is contained in:
commit
b0814cde07
1 changed files with 5 additions and 1 deletions
|
|
@ -141,7 +141,11 @@ class NotificationsActivity : BaseActivity(), androidx.swiperefreshlayout.widget
|
|||
}
|
||||
|
||||
if (item != null) {
|
||||
binding.notificationItems.addView(item)
|
||||
item.tag = it.id
|
||||
|
||||
if (binding.notificationItems.findViewWithTag<View>(it.id) == null) {
|
||||
binding.notificationItems.addView(item)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue