Fixed missing service intent flag for new API level target

This commit is contained in:
Mark Qvist 2024-06-04 22:13:56 +02:00
parent feb51aff32
commit 2c3c0f40d1
1 changed files with 1 additions and 1 deletions

View File

@ -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(