Fixed missing service intent flag for new API level target
This commit is contained in:
parent
feb51aff32
commit
2c3c0f40d1
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue