summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorArtem Shvadskiy <ashvadskiy@cyngn.com>2016-05-03 15:40:57 -0700
committerArtem Shvadskiy <ashvadskiy@cyngn.com>2016-05-03 15:40:57 -0700
commitdd6f2a2891a8445591be3e9fa53db293d7fd880b (patch)
tree043698ac8de0fd2fd18536f246e7f967ee837d1f /res
parent90106d85b75a60a8bdc9c4ad891e4a2e7ce548dd (diff)
downloadandroid_packages_apps_Trebuchet-dd6f2a2891a8445591be3e9fa53db293d7fd880b.tar.gz
android_packages_apps_Trebuchet-dd6f2a2891a8445591be3e9fa53db293d7fd880b.tar.bz2
android_packages_apps_Trebuchet-dd6f2a2891a8445591be3e9fa53db293d7fd880b.zip
Prevent widget previews from showing empty images.
When scrolling through the widget drawer, we submit multiple AsyncTasks to load and display preview images. On certain devices, attempting to load these images from AppWidgetManagerCompat (when we are generating previews for the first time) on a multi-threaded executor can cause us to receive empty images. To avoid this, we allow preview loading from the cache on a multi-threaded executor, but defer preview generation to a single-threaded executor. Additionally, the read and write db methods were not using the same ComponentName output (flattenToString vs flattenToSimpleString), which was resulting in consistent cache misses that forced unnecessary preview regeneration. This has been unified so we properly load from the cache. Change-Id: I3a90cf88fed531713e5d2df876f4ede822f7d569 issue-id: FEIJ-346
Diffstat (limited to 'res')
0 files changed, 0 insertions, 0 deletions