Making LauncherIcons thread safe
Creating a pool of LauncherIcons so that they can be used from multiple threads Change-Id: Idc7b5ddb47b6e338a5389f3c4faa6f63de108c72
This commit is contained in:
@@ -620,7 +620,9 @@ public class LauncherModel extends BroadcastReceiver
|
||||
@Override
|
||||
public ShortcutInfo get() {
|
||||
si.updateFromDeepShortcutInfo(info, mApp.getContext());
|
||||
LauncherIcons.createShortcutIcon(info, mApp.getContext()).applyTo(si);
|
||||
LauncherIcons li = LauncherIcons.obtain(mApp.getContext());
|
||||
li.createShortcutIcon(info).applyTo(si);
|
||||
li.recycle();
|
||||
return si;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user