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:
Grace Kloba
2009-08-31 18:43:48 -07:00
parent 0f44220b34
commit ef32ee3db8

View File

@@ -606,6 +606,7 @@ class LoadListener extends Handler implements EventHandler {
// before calling it.
if (mCacheLoader != null) {
mCacheLoader.load();
mFromCache = true;
if (DebugFlags.LOAD_LISTENER) {
Log.v(LOGTAG, "LoadListener cache load url=" + url());
}