commit | 08b3b6f27e054307bfa32c7b52c24ba8c58a2156 | [log] [tgz] |
---|---|---|
author | Andrey Epin <ayepin@google.com> | Wed Jun 28 13:17:43 2023 -0700 |
committer | Andrey Epin <ayepin@google.com> | Mon Sep 18 19:43:57 2023 -0700 |
tree | bd337579b6e3a46ac1f20182c9c056a00ff2e2ed | |
parent | 1c0f4edb1114be0b7b994d6d7a7e3c6f0c5215d0 [diff] |
Load app target labels explicitly DisplayResolveInfo#getDisplayLabel contains a logic to load the label if it is missing and the majority of app targets in Chooser are loaded this way. This CL: * removes label loading logic from DisplayResolveInfo; * adds explicit label loading with TargetDataLoader, where it's needed; * wrap some of the view related code blocks from ChooserListAdapter#onBindView into ViewHoder methods to reduce branching in the method and make it easier to read. The legacy DisplayResolveInfo lable-loading logic is effectively replaced with LoadLabelTaks's logic, the one that is used by resolver. Bug: 289264582 Test: manual testing: labes loading, targets groupping, targets pinning. Change-Id: I86814b5a4c67bf117fb1ea28c1d9980b5cf28ef5
IntentResolver
provides the implementation for Intent ACTION_CHOOSER
See also: ShareCompat.IntentBuilder