diff --git a/app/src/main/java/io/github/sds100/keymapper/system/apps/AndroidAppShortcutAdapter.kt b/app/src/main/java/io/github/sds100/keymapper/system/apps/AndroidAppShortcutAdapter.kt index 5bd6fd6408..42db77b015 100644 --- a/app/src/main/java/io/github/sds100/keymapper/system/apps/AndroidAppShortcutAdapter.kt +++ b/app/src/main/java/io/github/sds100/keymapper/system/apps/AndroidAppShortcutAdapter.kt @@ -108,11 +108,8 @@ class AndroidAppShortcutAdapter(context: Context) : AppShortcutAdapter { intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) try { - val pendingIntent = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { - PendingIntent.getActivity(ctx, 0, intent, PendingIntent.FLAG_IMMUTABLE) - } else { - PendingIntent.getActivity(ctx, 0, intent, 0) - } + val pendingIntent = + PendingIntent.getActivity(ctx, 0, intent, PendingIntent.FLAG_IMMUTABLE) pendingIntent.send() return Success(Unit)