Encapsulate target icon and label loading in an isolated component.
Patchset #1
Make ResolverListAdapter's and ChooserListAdapter icon and label async
task classes static, move them into a separate package.
After the modification anonymous AsyncTask from
ResolverListAdapter#loadFilteredItemIconTaskAsync became the identical
to the ResolverListAdapter$LoadIconTask and thus removed.
Patchset #2
Incapsulate target icons and labels loading within a new component,
IconLoader; use it instead of the direct async task usage.
Use coroutines Dispatchers.IO pool for icon and label loading.
Bug: 280653893
Test: manual testing
Change-Id: Ie995a9ee9e88baeacc62821390ee90ef6b7e31e3
15 files changed