From 2c3c0f40d1f0274b70cdf157937780cb0a5923e4 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Tue, 4 Jun 2024 22:13:56 +0200 Subject: [PATCH] Fixed missing service intent flag for new API level target --- sbapp/patches/PythonService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbapp/patches/PythonService.java b/sbapp/patches/PythonService.java index d59fe1c..48fc6ff 100644 --- a/sbapp/patches/PythonService.java +++ b/sbapp/patches/PythonService.java @@ -113,7 +113,7 @@ public class PythonService extends Service implements Runnable { Context context = getApplicationContext(); Intent contextIntent = new Intent(context, PythonActivity.class); PendingIntent pIntent = PendingIntent.getActivity(context, 0, contextIntent, - PendingIntent.FLAG_UPDATE_CURRENT); + PendingIntent.FLAG_IMMUTABLE | PendingIntent.FLAG_UPDATE_CURRENT); if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) { notification = new Notification(