summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Anton Potapov <apotapov@google.com> 2024-11-25 12:20:45 +0000
committer Anton Potapov <apotapov@google.com> 2024-11-25 12:27:15 +0000
commit79998988c99371bdcc5bcb2839df42282759b730 (patch)
tree6e5e294ec33d2b4c407449d9e29deb0e0256bea9 /libs/androidfw/misc.cpp
parentac2a1f25bff853e34eb20e099f779e228db4973e (diff)
Inject repeatWhenAttached CoroutineScope to prevent leaking
Before this CL @VolumeDialog CoroutineScope had slightly different lifecycle rather than the scopes used in the ViewBinders. This along side View#viewModel (which recreates the ViewModel when the view is reattached) could lead to the CoroutinesScope used inside of the ViewModel for stateIn to leak when the ViewModel is recreated insider the ViewBinder. Now @VolumeDialog is the same CoroutineScope and it's safe to inject it whereever in the @VolumeDialogScope Flag: com.android.systemui.volume_redesign Bug: 369994101 Test: manual on the tablet. VolumeDialog appears after physical button press Change-Id: I683f4690eca40b76e37be83f4384872562299ee4
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions