Skip to content

Commit c24ce82

Browse files
committed
fix: crash on creating notification on deploy failure on Android 12+
1 parent d621271 commit c24ce82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/java/com/osfans/trime/daemon/RimeDaemon.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ object RimeDaemon {
202202
appContext,
203203
0,
204204
intent,
205-
PendingIntent.FLAG_UPDATE_CURRENT,
205+
PendingIntent.FLAG_ONE_SHOT or
206+
PendingIntent.FLAG_IMMUTABLE,
206207
),
207208
).setOngoing(false)
208209
.setAutoCancel(true)

0 commit comments

Comments
 (0)