summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramStore.java
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 /graphics/java/android/renderscript/ProgramStore.java
parent5d122d96a5bf3bbaccaca2765b45716efe7ee2ef (diff)
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 'graphics/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions