summaryrefslogtreecommitdiffstats
path: root/test-runner/src
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2010-12-15 14:57:25 -0800
committerDianne Hackborn <hackbod@google.com>2010-12-16 20:09:13 -0800
commitc91893511dc1b9e634648406c9ae61b15476e65d (patch)
tree3ad578a43734d2ed63403a8b9076c2c5c6d07dbe /test-runner/src
parent60e41fa4456ce6bc37a33b1e4b81a56e9411199b (diff)
downloadframeworks_base-c91893511dc1b9e634648406c9ae61b15476e65d.zip
frameworks_base-c91893511dc1b9e634648406c9ae61b15476e65d.tar.gz
frameworks_base-c91893511dc1b9e634648406c9ae61b15476e65d.tar.bz2
Fix issue #3272082: Contacts: when going back from edit view,
list UI is not ready yet This involves some reworking of Loaders. Loaders, in particular CursorLoader, are now expected to retain their current data after being stopped. This allows applications to keep that data across onStop() -> onStart(), so when the user returns to the app it doesn't have to wait for the data to reload and thus cause flicker. This includes various API changes to better reflect the new semantics, plus a new LoaderCallbacks method to tell the application when it is actually time to stop their use of a loader's data. Note this is somewhat half-done, to help checking in the extensive application changes that are required without causing build breakage. Change-Id: Ib4b3bf8185a6da46e7f06ca125521d65e2e380a1
Diffstat (limited to 'test-runner/src')
-rw-r--r--test-runner/src/android/test/LoaderTestCase.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-runner/src/android/test/LoaderTestCase.java b/test-runner/src/android/test/LoaderTestCase.java
index 8be6590..c8564c2 100644
--- a/test-runner/src/android/test/LoaderTestCase.java
+++ b/test-runner/src/android/test/LoaderTestCase.java
@@ -64,7 +64,7 @@ public class LoaderTestCase extends AndroidTestCase {
// Shut the loader down
completedLoader.unregisterListener(this);
completedLoader.stopLoading();
- completedLoader.destroy();
+ completedLoader.reset();
// Store the result, unblocking the test thread
queue.add(data);