mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-26 07:10:37 +01:00
Set immutable flag on notification intent. Closes #56.
This commit is contained in:
parent
7e6f95e965
commit
4a12c136a0
@ -116,7 +116,7 @@ class SidebandService():
|
|||||||
notification_intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP)
|
notification_intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP)
|
||||||
notification_intent.setAction(Intent.ACTION_MAIN)
|
notification_intent.setAction(Intent.ACTION_MAIN)
|
||||||
notification_intent.addCategory(Intent.CATEGORY_LAUNCHER)
|
notification_intent.addCategory(Intent.CATEGORY_LAUNCHER)
|
||||||
self.notification_intent = PendingIntent.getActivity(self.app_context, 0, notification_intent, 0)
|
self.notification_intent = PendingIntent.getActivity(self.app_context, 0, notification_intent, PendingIntent.FLAG_IMMUTABLE)
|
||||||
|
|
||||||
notification.setContentIntent(self.notification_intent)
|
notification.setContentIntent(self.notification_intent)
|
||||||
notification.setAutoCancel(True)
|
notification.setAutoCancel(True)
|
||||||
|
Loading…
Reference in New Issue
Block a user