Skip to content

RUM-9340: Fix RumAction Tap is added twice for every ACTION_UP#2579

Merged
ambushwork merged 1 commit into
developfrom
yl/fix-rum-action-tap-duplicate
Apr 8, 2025
Merged

RUM-9340: Fix RumAction Tap is added twice for every ACTION_UP#2579
ambushwork merged 1 commit into
developfrom
yl/fix-rum-action-tap-duplicate

Conversation

@ambushwork

@ambushwork ambushwork commented Apr 2, 2025

Copy link
Copy Markdown
Member

What does this PR do?

Prior to this PR, RumMonitor.addActions(RumActionType.Tap) will always be called twice for a single tap action, this is because that in GestureListener both onSingleTapUp and onUp are called by GesturesDetectorWrapper when a ACTION_UP is received. both functions will call addActions for this tap.

The fix is to make onSingleTapUp return true, indicating that the tap is already consumed and should not be handled it again.

Motivation

RUM-9340

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@codecov-commenter

codecov-commenter commented Apr 2, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.19%. Comparing base (50a8e24) to head (e46b86b).
Report is 189 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2579      +/-   ##
===========================================
+ Coverage    70.17%   70.19%   +0.01%     
===========================================
  Files          808      808              
  Lines        30300    30300              
  Branches      5075     5076       +1     
===========================================
+ Hits         21263    21267       +4     
+ Misses        7626     7624       -2     
+ Partials      1411     1409       -2     
Files with missing lines Coverage Δ
...nstrumentation/gestures/GesturesDetectorWrapper.kt 70.00% <100.00%> (ø)
...ernal/instrumentation/gestures/GesturesListener.kt 93.84% <100.00%> (ø)

... and 24 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ambushwork
ambushwork marked this pull request as ready for review April 3, 2025 05:03
@ambushwork
ambushwork requested review from a team as code owners April 3, 2025 05:03
@ambushwork
ambushwork merged commit d5939a6 into develop Apr 8, 2025
@ambushwork
ambushwork deleted the yl/fix-rum-action-tap-duplicate branch April 8, 2025 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants