8000 make it work with android 12 · rnixx/python-for-android@550a2ce · GitHub
[go: up one dir, main page]

Skip to content

Commit 550a2ce

Browse files
committed
make it work with android 12
1 parent 5b6f5aa commit 550a2ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pythonforandroid/bootstraps/service_library/build/src/main/java/org/kivy/android/PythonBoundService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,10 @@ public void doStartForeground(String serviceTitle, String serviceDescription) {
143143
Notification notification;
144144
Context context = getApplicationContext();
145145
Intent contextIntent = new Intent(context, PythonActivity.class);
146+
// PendingIntent pIntent = PendingIntent.getActivity(context, 0, contextIntent,
147+
// PendingIntent.FLAG_UPDATE_CURRENT);
146148
PendingIntent pIntent = PendingIntent.getActivity(context, 0, contextIntent,
147-
PendingIntent.FLAG_UPDATE_CURRENT);
149+
134217728 | 67108864);
148150

149151
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
150152
notification = new Notification(

0 commit comments

Comments
 (0)
0