summaryrefslogtreecommitdiffstats
path: root/api/current.txt
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2013-03-14 19:10:04 -0700
committerDianne Hackborn <hackbod@google.com>2013-03-14 19:17:00 -0700
commitca614f78bed7eebf9dbfd77ba5720a0b5eeed816 (patch)
treef25d4cb8109f0b35336913427da38c3d3dcaa4aa /api/current.txt
parent5d122d96a5bf3bbaccaca2765b45716efe7ee2ef (diff)
downloadframeworks_base-ca614f78bed7eebf9dbfd77ba5720a0b5eeed816.zip
frameworks_base-ca614f78bed7eebf9dbfd77ba5720a0b5eeed816.tar.gz
frameworks_base-ca614f78bed7eebf9dbfd77ba5720a0b5eeed816.tar.bz2
Fix a bug where we could lose a loader content change.
If AsyncTaskLoader starts a background update due to a content change, and that update is cancelled, we drop the data when it finally arrives and forget that the content changed. If we later come back to the loader, we then end up showing stale data because we don't know that we still need to update due to the old content change. This change adds a couple new APIs to Loader to deal with the time between when you ask for whether there is a content change and finally either commit the data or cancel the update. AsyncTaskLoader is changed to make use of this so that it doesn't lose changes. Change-Id: I3866236b1c22bb9138f2d9f6032b126aeaee2e6e
Diffstat (limited to 'api/current.txt')
-rw-r--r--api/current.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt
index be104a0..d03a667 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -6159,6 +6159,7 @@ package android.content {
ctor public Loader(android.content.Context);
method public void abandon();
method public boolean cancelLoad();
+ method public void commitContentChanged();
method public java.lang.String dataToString(D);
method public void deliverCancellation();
method public void deliverResult(D);
@@ -6179,6 +6180,7 @@ package android.content {
method public void registerListener(int, android.content.Loader.OnLoadCompleteListener<D>);
method public void registerOnLoadCanceledListener(android.content.Loader.OnLoadCanceledListener<D>);
method public void reset();
+ method public void rollbackContentChanged();
method public final void startLoading();
method public void stopLoading();
method public boolean takeContentChanged();