mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01: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)
|
newFragment.show(supportFragmentManager, FilterConversationFragment.TAG)
|
||||||
}
|
}
|
||||||
|
|
||||||
binding.newMentionPopupBubble?.hide()
|
binding.newMentionPopupBubble.hide()
|
||||||
binding.newMentionPopupBubble?.setPopupBubbleListener {
|
binding.newMentionPopupBubble.setPopupBubbleListener {
|
||||||
binding.recyclerView?.smoothScrollToPosition(
|
binding.recyclerView.smoothScrollToPosition(
|
||||||
nextUnreadConversationScrollPosition
|
nextUnreadConversationScrollPosition
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
binding.newMentionPopupBubble?.let { viewThemeUtils.material.colorMaterialButtonPrimaryFilled(it) }
|
binding.newMentionPopupBubble.let { viewThemeUtils.material.colorMaterialButtonPrimaryFilled(it) }
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun hideLogoForBrandedClients() {
|
private fun hideLogoForBrandedClients() {
|
||||||
@ -1039,14 +1039,14 @@ class ConversationsListActivity :
|
|||||||
val position = adapter!!.getGlobalPositionOf(flexItem)
|
val position = adapter!!.getGlobalPositionOf(flexItem)
|
||||||
if (hasUnreadItems(conversation) && position > lastVisibleItem) {
|
if (hasUnreadItems(conversation) && position > lastVisibleItem) {
|
||||||
nextUnreadConversationScrollPosition = position
|
nextUnreadConversationScrollPosition = position
|
||||||
if (!binding.newMentionPopupBubble?.isShown!!) {
|
if (!binding.newMentionPopupBubble.isShown) {
|
||||||
binding.newMentionPopupBubble?.show()
|
binding.newMentionPopupBubble.show()
|
||||||
}
|
}
|
||||||
return@subscribe
|
return@subscribe
|
||||||
}
|
}
|
||||||
nextUnreadConversationScrollPosition = 0
|
|
||||||
binding.newMentionPopupBubble?.hide()
|
|
||||||
}
|
}
|
||||||
|
nextUnreadConversationScrollPosition = 0
|
||||||
|
binding.newMentionPopupBubble.hide()
|
||||||
} catch (e: NullPointerException) {
|
} catch (e: NullPointerException) {
|
||||||
Log.d(
|
Log.d(
|
||||||
TAG,
|
TAG,
|
||||||
|
Loading…
Reference in New Issue
Block a user