-
-
Notifications
You must be signed in to change notification settings - Fork 444
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: Window.FEATURE_NO_TITLE does not work when using activity traces #1769
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand why moving the call to addActivity
from onActivityCreated
to onActivityStarted
fixes the problem. Can you please elaborate on why this fixes the problem and add this info as a comment? The docs of FrameMetricsAggregator#add
don't contain any information around this.
Ideally, we would have a UI test reproducing this issue, but I guess that is a bit complicated to achieve?
Codecov Report
@@ Coverage Diff @@
## main #1769 +/- ##
=========================================
Coverage 75.31% 75.31%
Complexity 2165 2165
=========================================
Files 215 215
Lines 7718 7718
Branches 822 822
=========================================
Hits 5813 5813
Misses 1507 1507
Partials 398 398 Continue to review full report at Codecov.
|
the comment states what I've found in their docs, https://firebase.google.com/docs/perf-mon/screen-traces?platform=android#definition yes, a UI test would be ideal but it's not easy since we don't have UI tests running, likely to be done when somebody is working on the test harness as well |
@marandaneto, can you please add the link to the comment? Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
sentry-android-core/src/main/java/io/sentry/android/core/ActivityLifecycleIntegration.java
Outdated
Show resolved
Hide resolved
…ityLifecycleIntegration.java Co-authored-by: Philipp Hofmann <philipp.hofmann@sentry.io>
Just made a quick glance throw the source code - rough idea: if this is called in I'd say that FrameMetricsAggregator doc is incomplete in this case and they should fix it :) |
Instructions and example for changelogPlease add an entry to Example: ## Unreleased
- Window.FEATURE_NO_TITLE does not work when using activity traces ([#1769](https://github.com/getsentry/sentry-java/pull/1769)) If none of the above apply, you can opt out of this check by adding |
📜 Description
Fix: Window.FEATURE_NO_TITLE does not work when using activity traces
💡 Motivation and Context
Fixes #1768
💚 How did you test it?
running sample with dialog, checking no title bar and also checking slow/frozen frames on Sentry UI
📝 Checklist
🔮 Next steps