Fixing icon label not updated during bulk load am: bc3fb936e1

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19419027

Change-Id: I8dd080ff31e910e1ff3202d00696c09103f512c2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Sunny Goyal
2022-07-25 23:08:21 +00:00
committed by Automerger Merge Worker
@@ -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);