Fixing wrong cache lookup call

Cache entry was saved using flattenToShortString, but the
lookup was using flattenToString

Change-Id: I4c012d5a90a89121989db059d31d3dd288fa5b8c
This commit is contained in:
Sunny Goyal
2016-10-27 11:40:06 -07:00
parent 9ccafbff26
commit 3ef8691f82

View File

@@ -242,7 +242,7 @@ public class WidgetPreviewLoader {
CacheDb.COLUMN_COMPONENT + " = ? AND " + CacheDb.COLUMN_USER + " = ? AND "
+ CacheDb.COLUMN_SIZE + " = ?",
new String[]{
key.componentName.flattenToString(),
key.componentName.flattenToShortString(),
Long.toString(mUserManager.getSerialNumberForUser(key.user)),
key.size
});