Removing file IO used for checking configuration change

> This check was used for flushing the cache, but since the cache
is backed by a DB, this has no effect as same icons are loaded again

Change-Id: Ib7d8a8598c5d225d922e095c899dc11ad06f2b7a
This commit is contained in:
Sunny Goyal committed 2015-05-26 09:14:49 -07:00
1 parent 8f73d7032e
commit f0e1fd9938
3 files changed
+1 -119

No files matched your search

-9
View File
@@ -49,10 +49,8 @@ import com.android.launcher3.util.Thunk;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Map.Entry;
import java.util.Stack;
/**
@@ -366,13 +364,6 @@ public class IconCache {
return mIconDb.newContentValues(entry.icon, entry.title.toString());
}
/**
* Empty out the cache.
*/
public synchronized void flush() {
mCache.clear();
}
/**
* Fetches high-res icon for the provided ItemInfo and updates the caller when done.
* @return a request ID that can be used to cancel the request.