mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user