Merge "Fix labels loading regression" into tm-qpr-dev

This commit is contained in:
TreeHugger Robot
2022-10-22 12:11:12 +00:00
committed by Android (Google) Code Review

View File

@@ -647,15 +647,16 @@ public class ResolverListAdapter extends BaseAdapter {
if (info instanceof DisplayResolveInfo) { if (info instanceof DisplayResolveInfo) {
DisplayResolveInfo dri = (DisplayResolveInfo) info; DisplayResolveInfo dri = (DisplayResolveInfo) info;
boolean hasLabel = dri.hasDisplayLabel(); if (dri.hasDisplayLabel()) {
holder.bindLabel( holder.bindLabel(
dri.getDisplayLabel(), dri.getDisplayLabel(),
dri.getExtendedInfo(), dri.getExtendedInfo(),
hasLabel && alwaysShowSubLabel()); alwaysShowSubLabel());
holder.bindIcon(info); } else {
if (!hasLabel) { holder.bindLabel("", "", false);
loadLabel(dri); loadLabel(dri);
} }
holder.bindIcon(info);
if (!dri.hasDisplayIcon()) { if (!dri.hasDisplayIcon()) {
loadIcon(dri); loadIcon(dri);
} }