mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 19:38:21 +00:00
Removing UserManagerCompat wrapper for getting baded label
This removes some crass dependency on Launcher compat implementation making it easier to move iconCache to a separate library Change-Id: If5fab0c82d98089cde6f54b6a374fb7bb2db5ae8
This commit is contained in:
@@ -659,8 +659,8 @@ public class InstallShortcutReceiver extends BroadcastReceiver {
|
||||
info.applyFrom(iconInfo);
|
||||
|
||||
info.title = Utilities.trim(name);
|
||||
info.contentDescription = UserManagerCompat.getInstance(app.getContext())
|
||||
.getBadgedLabelForUser(info.title, info.user);
|
||||
info.contentDescription = app.getContext().getPackageManager()
|
||||
.getUserBadgedLabel(info.title, info.user);
|
||||
info.intent = intent;
|
||||
return info;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user