Merge "Fix labels loading regression" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ea523a0c22
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user