Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 412f0d26 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing icon label not updated during bulk load

The label was being updated to default in Loader cursor
which prevented eventual final update of the label

Bug: 220645719
Test: Verified on device
Change-Id: I2559804eb885663387bd1f5afe9e3337130a9fe3
parent 026ddc44
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -291,13 +291,17 @@ public class LoaderCursor extends CursorWrapper {

        // from the db
        if (TextUtils.isEmpty(info.title)) {
            if (loadIcon) {
                info.title = getTitle();
        }

                // 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);
        return info;