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:
Sunny Goyal
2018-11-05 17:19:45 -08:00
parent 06bca75d01
commit d7239fcc52
7 changed files with 13 additions and 28 deletions

View File

@@ -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;
}