Strange app icon duplication in pinned shortcut (Android O)
问题 I'm creating a pinned shortcut of my app launcher icon for Android O device (either emulator or physical device) and found strange behaviour. My code looks like this: @TargetApi(Build.VERSION_CODES.O) private void createPinnedShortcut(Context context) { ShortcutManager shortcutManager = context.getSystemService(ShortcutManager.class); if (shortcutManager != null) { if (shortcutManager.isRequestPinShortcutSupported()) { Intent intent= MainActivity.getLaunchIntent(this); intent.setAction(Intent