mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-25 23:00:36 +01:00
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();
|
Context context = getApplicationContext();
|
||||||
Intent contextIntent = new Intent(context, PythonActivity.class);
|
Intent contextIntent = new Intent(context, PythonActivity.class);
|
||||||
PendingIntent pIntent = PendingIntent.getActivity(context, 0, contextIntent,
|
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) {
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
|
||||||
notification = new Notification(
|
notification = new Notification(
|
||||||
|
Loading…
Reference in New Issue
Block a user