mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-02 14:35:21 +00:00
fix: replace alpha update with isVisible to not intercept tap from message gestures (#809)
This commit is contained in:
parent
34569ff1da
commit
5601da0e22
@ -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()
|
||||||
}
|
}
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user