commit | 3558f42f234bb91981b401a66a3193b94657ebfb | [log] [tgz] |
---|---|---|
author | George Mount <mount@google.com> | Thu Mar 02 14:34:46 2017 -0800 |
committer | George Mount <mount@google.com> | Fri Mar 03 17:28:09 2017 -0800 |
tree | d5b3dfb37be5051da1f09907d3dd48fe843ee3c6 | |
parent | 6b198c25cea62c1d9c2b3014f0efd34367d276d3 [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 cts tests Change-Id: Ib90f14e16083916a21a25ce87a4dd29ab9a33878