commit | 6a5ddc9c208bb615b3397aa8705e3e4ad73c4a62 | [log] [tgz] |
---|---|---|
author | George Mount <mount@google.com> | Fri Mar 03 14:32:25 2017 -0800 |
committer | George Mount <mount@google.com> | Fri Mar 03 16:58:38 2017 -0800 |
tree | d7b95b2ca8e81fb6f3c90f67e8c019b98ab25a64 | |
parent | 09616c0c1d9c0634cf1fc25e210c83bc19d9a4a9 [diff] |
Fix Loader bugs Bug 32758881 Bug 34264461 When destroying the LoaderManager, the host was not being cleared. The host was being leaked and this leaked the Activity. When a LoaderManager is reused, for example with an orientation change, the host was updated, but it wasn't started. This adds a test for that case to ensure that when a reused LoaderManager is loaded that it is properly started. Test: ran fragment tests Change-Id: I71fa5e53b20a8e1ff3ff721a954568ffd6a7227e