浏览代码

Set notification to alert only once

Peter Cai 1 年之前
父节点
当前提交
79f43e2fda
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app-common/src/main/java/im/angry/openeuicc/service/EuiccChannelManagerService.kt

+ 1 - 0
app-common/src/main/java/im/angry/openeuicc/service/EuiccChannelManagerService.kt

@@ -120,6 +120,7 @@ class EuiccChannelManagerService : LifecycleService(), OpenEuiccContextMarker {
                 .setSmallIcon(iconRes)
                 .setSmallIcon(iconRes)
                 .setPriority(NotificationCompat.PRIORITY_LOW)
                 .setPriority(NotificationCompat.PRIORITY_LOW)
                 .setOngoing(true)
                 .setOngoing(true)
+                .setOnlyAlertOnce(true)
                 .build()
                 .build()
 
 
             if (state.progress == 0) {
             if (state.progress == 0) {