mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Make entire video preview file size bubble clickable.
This commit is contained in:
committed by
Alex Hart
parent
5e8d324860
commit
deacf28d77
@@ -285,8 +285,14 @@ class TransferControlView @JvmOverloads constructor(context: Context, attrs: Att
|
||||
|
||||
private fun displayPendingPlayableVideo(currentState: TransferControlViewState) {
|
||||
binding.secondaryProgressView.startClickListener = currentState.downloadClickedListener
|
||||
binding.secondaryDetailsText.setOnClickListener(currentState.downloadClickedListener)
|
||||
binding.secondaryBackground.setOnClickListener(currentState.downloadClickedListener)
|
||||
binding.playVideoButton.setOnClickListener(currentState.instantPlaybackClickListener)
|
||||
applyFocusableAndClickable(currentState, listOf(binding.secondaryProgressView, binding.playVideoButton), listOf(binding.primaryProgressView))
|
||||
applyFocusableAndClickable(
|
||||
currentState,
|
||||
listOf(binding.secondaryProgressView, binding.secondaryDetailsText, binding.secondaryBackground, binding.playVideoButton),
|
||||
listOf(binding.primaryProgressView)
|
||||
)
|
||||
binding.secondaryProgressView.setStopped(false)
|
||||
showAllViews(
|
||||
primaryProgressView = false,
|
||||
|
||||
Reference in New Issue
Block a user