summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorArtem Shvadskiy <ashvadskiy@cyngn.com>2016-05-03 15:40:57 -0700
committerArtem Shvadskiy <ashvadskiy@cyngn.com>2016-05-04 10:56:43 -0700
commit058ef981510ce35ca6e7f39be57a8d76c4865575 (patch)
tree96462c43961135f699eb308f3377c926480a7201 /Android.mk
parentf271d1a1ec8ce65799db1de9adada504557af577 (diff)
downloadandroid_packages_apps_Trebuchet-058ef981510ce35ca6e7f39be57a8d76c4865575.tar.gz
android_packages_apps_Trebuchet-058ef981510ce35ca6e7f39be57a8d76c4865575.tar.bz2
android_packages_apps_Trebuchet-058ef981510ce35ca6e7f39be57a8d76c4865575.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 (cherry picked from commit dd6f2a2891a8445591be3e9fa53db293d7fd880b)
Diffstat (limited to 'Android.mk')
0 files changed, 0 insertions, 0 deletions