summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Alejandro Nijamkin <nijamkin@google.com> 2022-07-25 13:30:41 -0700
committer Alejandro Nijamkin <nijamkin@google.com> 2022-07-31 07:11:13 -0700
commitc738a8ccae368c68b1a80fff11dbe34cc123336a (patch)
treeba6d1165e21ac3aa3a241a5ce59a7b76559e5d48 /libs/androidfw/StringPool.cpp
parentf0734a24e7ec952640d39a52e4b304c30e97b3ac (diff)
repeatWhenAttached
This new View extension function replaces WindowAddedViewLifecycleOwner and is intended for use with views that are not part of an activity. It is more correct because it properly disposes itself and stops all previously launched coroutines/jobs when the view is detached from its view hierarchy. Test: Extensive unit tests included. Also tested manually making sure that there are no crashes and that jobs scheduled by a view-binder are properly cleaned up when the view is detached and replaced by a different view when changing device configuration using: $ adb shell wm density 1000 Bug: 235403546 Change-Id: Ied36c9e1735333c482fc82cfbe28e665083795ae
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions