Loading app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java +10 −3 Original line number Diff line number Diff line Loading @@ -1984,11 +1984,18 @@ public class LauncherActivity extends AppCompatActivity implements .setMessage(R.string.uninstall_shortcut_dialog) .setPositiveButton(R.string.ok, (dialog1, which) -> { ShortcutItem shortcut = (ShortcutItem) launcherItem; if (shortcut.packageName != null) { DeepShortcutManager.getInstance(this).unpinShortcut(ShortcutKey.fromItem(shortcut)); if (DeepShortcutManager.getInstance(this).wasLastCallSuccess()) { deleteShortcutFromProvider(shortcut.id); removeShortcutView(shortcut, blissFrameLayout); } } else { // Null package name generally comes for nougat shortcuts so don't unpin here, just directly delete it. deleteShortcutFromProvider(shortcut.id); removeShortcutView(shortcut, blissFrameLayout); } }) .setNegativeButton(R.string.cancel, null) .setIcon(launcherItem.icon) Loading Loading
app/src/main/java/foundation/e/blisslauncher/features/launcher/LauncherActivity.java +10 −3 Original line number Diff line number Diff line Loading @@ -1984,11 +1984,18 @@ public class LauncherActivity extends AppCompatActivity implements .setMessage(R.string.uninstall_shortcut_dialog) .setPositiveButton(R.string.ok, (dialog1, which) -> { ShortcutItem shortcut = (ShortcutItem) launcherItem; if (shortcut.packageName != null) { DeepShortcutManager.getInstance(this).unpinShortcut(ShortcutKey.fromItem(shortcut)); if (DeepShortcutManager.getInstance(this).wasLastCallSuccess()) { deleteShortcutFromProvider(shortcut.id); removeShortcutView(shortcut, blissFrameLayout); } } else { // Null package name generally comes for nougat shortcuts so don't unpin here, just directly delete it. deleteShortcutFromProvider(shortcut.id); removeShortcutView(shortcut, blissFrameLayout); } }) .setNegativeButton(R.string.cancel, null) .setIcon(launcherItem.icon) Loading