mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Setup make icon-loader library
Bug: 115891474 Test: make -j10 icon-loader Next step: Launcher will depend on icon-loader in next CL Change-Id: I797ddb857cf8be79f3be6ca2f174c593ca3713a5
This commit is contained in:
@@ -480,7 +480,7 @@ public class InstallShortcutReceiver extends BroadcastReceiver {
|
||||
final LauncherAppState app = LauncherAppState.getInstance(mContext);
|
||||
// Set default values until proper values is loaded.
|
||||
appInfo.title = "";
|
||||
app.getIconCache().getDefaultIcon(user).applyTo(appInfo);
|
||||
appInfo.applyFrom(app.getIconCache().getDefaultIcon(user));
|
||||
final ShortcutInfo si = appInfo.makeShortcut();
|
||||
if (Looper.myLooper() == LauncherModel.getWorkerLooper()) {
|
||||
app.getIconCache().getTitleAndIcon(si, activityInfo, false /* useLowResIcon */);
|
||||
@@ -495,7 +495,7 @@ public class InstallShortcutReceiver extends BroadcastReceiver {
|
||||
} else if (shortcutInfo != null) {
|
||||
ShortcutInfo si = new ShortcutInfo(shortcutInfo, mContext);
|
||||
LauncherIcons li = LauncherIcons.obtain(mContext);
|
||||
li.createShortcutIcon(shortcutInfo).applyTo(si);
|
||||
si.applyFrom(li.createShortcutIcon(shortcutInfo));
|
||||
li.recycle();
|
||||
return Pair.create((ItemInfo) si, (Object) shortcutInfo);
|
||||
} else if (providerInfo != null) {
|
||||
@@ -656,7 +656,7 @@ public class InstallShortcutReceiver extends BroadcastReceiver {
|
||||
if (iconInfo == null) {
|
||||
iconInfo = app.getIconCache().getDefaultIcon(info.user);
|
||||
}
|
||||
iconInfo.applyTo(info);
|
||||
info.applyFrom(iconInfo);
|
||||
|
||||
info.title = Utilities.trim(name);
|
||||
info.contentDescription = UserManagerCompat.getInstance(app.getContext())
|
||||
|
||||
Reference in New Issue
Block a user