-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Android] Switch fragment coroutine scopes to use lifecycleScope #11405
Conversation
PR #11405: Size comparison from ee7682d to d77596d Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
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.
Great ~ Looks good to me.
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.
Great ~ Looks good to me.
Fast tracking, as this is a platform maintainer updating platform code |
@austinh0 conflicts. |
PR #11405: Size comparison from 29747a2 to b51f13f Decreases (1 build for esp32)
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
Problem
CoroutineScope
is not re-created after being canceled inonStop()
.Change overview
viewLifecycleOwner.lifecycleScope
, aCoroutineScope
with a lifecycle tied to the fragment. No more manual management ofCoroutineScope
lifecycle required.Testing