Merge change 23395 into eclair
* changes: When we get 304 and switch to cacheLoader, need to set mFromCache to be true. So that the cache loading will not create a new mCacheResult which overwrites the old cache data.
This commit is contained in:
@@ -606,6 +606,7 @@ class LoadListener extends Handler implements EventHandler {
|
|||||||
// before calling it.
|
// before calling it.
|
||||||
if (mCacheLoader != null) {
|
if (mCacheLoader != null) {
|
||||||
mCacheLoader.load();
|
mCacheLoader.load();
|
||||||
|
mFromCache = true;
|
||||||
if (DebugFlags.LOAD_LISTENER) {
|
if (DebugFlags.LOAD_LISTENER) {
|
||||||
Log.v(LOGTAG, "LoadListener cache load url=" + url());
|
Log.v(LOGTAG, "LoadListener cache load url=" + url());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user