Skip to content
This repository was archived by the owner on Jun 8, 2024. It is now read-only.

Commit ae3244f

Browse files
committed
DetectNumberService: Allow click notification to open
Signed-off-by: Fung <fython@163.com>
1 parent 6df9b92 commit ae3244f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

mobile/src/main/java/info/papdt/express/helper/services/DetectNumberService.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,12 @@ private void sendNotification(String appName, String company, String number, Str
331331
.setPriority(Notification.PRIORITY_HIGH)
332332
.setShowWhen(false)
333333
.setAutoCancel(true)
334+
.setContentIntent(PendingIntent.getActivity(
335+
this, 0, addIntent, PendingIntent.FLAG_UPDATE_CURRENT
336+
))
334337
.addAction(R.drawable.ic_add_black_24dp, getString(R.string.auto_detect_noti_action_add),
335338
PendingIntent.getActivity(
336-
this, 0, addIntent, PendingIntent.FLAG_CANCEL_CURRENT
339+
this, 0, addIntent, PendingIntent.FLAG_UPDATE_CURRENT
337340
))
338341
.setDeleteIntent(PendingIntent.getBroadcast(
339342
this, 1002,

0 commit comments

Comments
 (0)