Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: disable clicks under record audio [WPB-9619] #3255

Merged
merged 2 commits into from
Jul 31, 2024

Conversation

Garzas
Copy link
Contributor

@Garzas Garzas commented Jul 30, 2024

BugWPB-9619 [Android] While recording audio message, buttons behind audio message recorder are still reactive


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

Buttons under record message area were clickable

Solutions

Add clickable to record area box with disabled ripple effect to avoid clicks under this area

@Garzas Garzas requested review from alexandreferris, ohassine, saleniuk, a team, yamilmedina and MohamadJaara and removed request for a team July 30, 2024 15:10
@echoes-hq echoes-hq bot added the echoes: unplanned Any work item that isn’t part of the product or technical roadmap. label Jul 30, 2024
Copy link
Contributor

@alexandreferris alexandreferris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏🏻 nice catch!

Comment on lines 98 to 102
.clickable(
interactionSource = remember { MutableInteractionSource() },
indication = null,
onClick = { /* Don't allow to click on elements under record area */ }
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: use pointerInput instead of clickable to block any touch interaction, not just clicks

Suggested change
.clickable(
interactionSource = remember { MutableInteractionSource() },
indication = null,
onClick = { /* Don't allow to click on elements under record area */ }
)
.pointerInput(Unit) { /* Don't allow to click on elements under record area */ }

Copy link
Contributor

Built wire-android-staging-compat-pr-3255.apk is available for download

Copy link
Contributor

Built wire-android-internal-compat-pr-3255.apk is available for download

@Garzas Garzas requested a review from saleniuk July 31, 2024 07:19
Copy link

@Garzas Garzas enabled auto-merge July 31, 2024 07:36
@Garzas Garzas added this pull request to the merge queue Jul 31, 2024
Copy link
Contributor

Built wire-android-staging-compat-pr-3255.apk is available for download

Copy link
Contributor

Built wire-android-internal-compat-pr-3255.apk is available for download

Merged via the queue into release/candidate with commit 390b79b Jul 31, 2024
11 of 12 checks passed
@Garzas Garzas deleted the fix/disable-clicks-under-record-audio branch July 31, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: unplanned Any work item that isn’t part of the product or technical roadmap. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants