Skip to content

Taps not always associated with the correct fragment #1387

Description

@GetsEclectic

Thanks for taking the time for reporting an issue!

Describe what happened
Include any error message or stack trace if available.

I noticed that in the RUM UI, taps are often not associated with the fragment they belong to. I don't see the fragment information being sent for a tap in the sdk, it seems like it might be associated with the most recent 'View Load'? I played around with the code a bit and was able to more reliably determine the correct fragment in handleTapUp like this:

target.findFragment().javaClass.name

Steps to reproduce the issue:

Tap things in the app and then look at RUM

Describe what you expected:

These MaterialCardViews are actually both in InvestHomeFragment:

Tap stash-androidstash-android Tap on Retirement Portfolio on screen com.stash.bottomnav.BottomNavContainerFragment
Tap stash-androidstash-android Tap on Personal Portfolio on screen com.stash.features.invest.portfolio.ui.fragment.InvestHomeFragment
-- -- --

Additional context

  • Android OS version: 14
  • Device Model: pixel 4 xl
  • Datadog SDK version: 1.17.1
  • Versions of any other relevant dependencies (OkHttp, …):
  • Proguard configuration:
  • Gradle Plugins:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions