Merge "Fixing icon label not updated during bulk load" into tm-qpr-dev

This commit is contained in:
TreeHugger Robot
2022-07-25 19:17:51 +00:00
committed by Android (Google) Code Review
@@ -291,12 +291,16 @@ public class LoaderCursor extends CursorWrapper {
// from the db
if (TextUtils.isEmpty(info.title)) {
info.title = getTitle();
}
if (loadIcon) {
info.title = getTitle();
// fall back to the class name of the activity
if (info.title == null) {
info.title = componentName.getClassName();
// fall back to the class name of the activity
if (info.title == null) {
info.title = componentName.getClassName();
}
} else {
info.title = "";
}
}
info.contentDescription = mPM.getUserBadgedLabel(info.title, info.user);