mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-13 03:01:05 +00:00
fix flickering of unread mention bubble
bug was introduced with https://github.com/nextcloud/talk-android/pull/3417 Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
e7d6dfd060
commit
270d76554f
@ -1009,13 +1009,13 @@ class ConversationsListActivity :
|
||||
newFragment.show(supportFragmentManager, FilterConversationFragment.TAG)
|
||||
}
|
||||
|
||||
binding.newMentionPopupBubble?.hide()
|
||||
binding.newMentionPopupBubble?.setPopupBubbleListener {
|
||||
binding.recyclerView?.smoothScrollToPosition(
|
||||
binding.newMentionPopupBubble.hide()
|
||||
binding.newMentionPopupBubble.setPopupBubbleListener {
|
||||
binding.recyclerView.smoothScrollToPosition(
|
||||
nextUnreadConversationScrollPosition
|
||||
)
|
||||
}
|
||||
binding.newMentionPopupBubble?.let { viewThemeUtils.material.colorMaterialButtonPrimaryFilled(it) }
|
||||
binding.newMentionPopupBubble.let { viewThemeUtils.material.colorMaterialButtonPrimaryFilled(it) }
|
||||
}
|
||||
|
||||
private fun hideLogoForBrandedClients() {
|
||||
@ -1039,14 +1039,14 @@ class ConversationsListActivity :
|
||||
val position = adapter!!.getGlobalPositionOf(flexItem)
|
||||
if (hasUnreadItems(conversation) && position > lastVisibleItem) {
|
||||
nextUnreadConversationScrollPosition = position
|
||||
if (!binding.newMentionPopupBubble?.isShown!!) {
|
||||
binding.newMentionPopupBubble?.show()
|
||||
if (!binding.newMentionPopupBubble.isShown) {
|
||||
binding.newMentionPopupBubble.show()
|
||||
}
|
||||
return@subscribe
|
||||
}
|
||||
nextUnreadConversationScrollPosition = 0
|
||||
binding.newMentionPopupBubble?.hide()
|
||||
}
|
||||
nextUnreadConversationScrollPosition = 0
|
||||
binding.newMentionPopupBubble.hide()
|
||||
} catch (e: NullPointerException) {
|
||||
Log.d(
|
||||
TAG,
|
||||
|
Loading…
Reference in New Issue
Block a user