fix: replace alpha update with isVisible to not intercept tap from message gestures (#809)

This commit is contained in:
Harris 2021-12-15 17:01:35 +11:00 committed by GitHub
parent 34569ff1da
commit 5601da0e22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -714,7 +714,6 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe
} }
private fun handleRecyclerViewScrolled() { private fun handleRecyclerViewScrolled() {
val alpha = if (!isScrolledToBottom) 1.0f else 0.0f
// FIXME: Checking isScrolledToBottom is a quick fix for an issue where the // FIXME: Checking isScrolledToBottom is a quick fix for an issue where the
// typing indicator overlays the recycler view when scrolled up // typing indicator overlays the recycler view when scrolled up
val wasTypingIndicatorVisibleBefore = typingIndicatorViewContainer.isVisible val wasTypingIndicatorVisibleBefore = typingIndicatorViewContainer.isVisible
@ -723,7 +722,7 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe
if (isTypingIndicatorVisibleAfter != wasTypingIndicatorVisibleBefore) { if (isTypingIndicatorVisibleAfter != wasTypingIndicatorVisibleBefore) {
inputBarHeightChanged(inputBar.height) inputBarHeightChanged(inputBar.height)
} }
scrollToBottomButton.alpha = alpha scrollToBottomButton.isVisible = !isScrolledToBottom
unreadCount = min(unreadCount, layoutManager.findFirstVisibleItemPosition()) unreadCount = min(unreadCount, layoutManager.findFirstVisibleItemPosition())
updateUnreadCountIndicator() updateUnreadCountIndicator()
} }

View File

@ -94,8 +94,7 @@
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_marginRight="12dp" android:layout_marginRight="12dp"
android:layout_marginBottom="72dp" android:layout_marginBottom="72dp">
android:alpha="1">
<RelativeLayout <RelativeLayout
android:layout_width="40dp" android:layout_width="40dp"