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

1581556: Register lifecycle observers on the main thread #310

Merged
merged 1 commit into from
Sep 30, 2019

Conversation

mdboom
Copy link
Contributor

@mdboom mdboom commented Sep 19, 2019

@codecov-io
Copy link

codecov-io commented Sep 19, 2019

Codecov Report

Merging #310 into master will increase coverage by 0.06%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #310      +/-   ##
============================================
+ Coverage     70.88%   70.95%   +0.06%     
- Complexity      247      250       +3     
============================================
  Files            64       65       +1     
  Lines          3837     3846       +9     
  Branches        589      590       +1     
============================================
+ Hits           2720     2729       +9     
  Misses          682      682              
  Partials        435      435
Impacted Files Coverage Δ Complexity Δ
.../java/mozilla/telemetry/glean/utils/ThreadUtils.kt 100% <100%> (ø) 3 <3> (?)
...oid/src/main/java/mozilla/telemetry/glean/Glean.kt 84.91% <100%> (+0.08%) 1 <0> (ø) ⬇️
.../telemetry/glean/scheduler/MetricsPingScheduler.kt 96.2% <100%> (+0.04%) 25 <0> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f2e6c3a...808c8d2. Read the comment docs.

Copy link
Member

@badboy badboy left a comment

Choose a reason for hiding this comment

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

Please land this only once the a-c PR landed

@mdboom mdboom force-pushed the lifecycle-on-main-thread branch 2 times, most recently from 184f6d0 to 27386fd Compare September 20, 2019 17:56
@badboy badboy self-requested a review September 24, 2019 12:34
Copy link
Member

@badboy badboy left a comment

Choose a reason for hiding this comment

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

Needs the changes from a-c applied

/**
* Assert that this code is run on the main (UI) thread.
*/
fun assertOnUiThread() {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is ported from android-components...

Copy link
Member

@travis79 travis79 left a comment

Choose a reason for hiding this comment

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

👍

@badboy badboy merged commit 6fc51c9 into mozilla:master Sep 30, 2019
@mdboom mdboom deleted the lifecycle-on-main-thread branch April 2, 2020 16:48
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