summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2016-09-21 15:41:47 -0700
committerAdam Powell <adamp@google.com>2016-09-21 15:47:06 -0700
commit180202f2211d8c6bbb7a7057e61dafc90fe31930 (patch)
tree9e5c5922fdd8513542e45bea1af06bab4c748fc1 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent56a70e38653f6566c2b6bf99bad3eb3a2146e148 (diff)
Don't hold old host callback for fragments on the back stack
LoaderManagers configure their host callback lazily as their associated fragment is brought up through its lifecycle states. In the case of fragments on the fragment back stack this could happen very late, if at all. As a LoaderManager's host callback references the host Activity, this means that a LoaderManager could keep a destroyed Activity reference alive. Update the host callbacks of all LoaderManagers eagerly during the restore non-configuration instance phase. Bug: 30653222 Test: core/tests/coretests/src/android/app/LoaderLifecycleTest.java Change-Id: I5d2b81daae5e7cae429fcf4934e64b3ce281140c
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions