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

Commit

Permalink
DetectNumberService: Allow click notification to open
Browse files Browse the repository at this point in the history
Signed-off-by: Fung <[email protected]>
  • Loading branch information
fython committed Jun 26, 2017
1 parent 6df9b92 commit ae3244f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,12 @@ private void sendNotification(String appName, String company, String number, Str
.setPriority(Notification.PRIORITY_HIGH)
.setShowWhen(false)
.setAutoCancel(true)
.setContentIntent(PendingIntent.getActivity(
this, 0, addIntent, PendingIntent.FLAG_UPDATE_CURRENT
))
.addAction(R.drawable.ic_add_black_24dp, getString(R.string.auto_detect_noti_action_add),
PendingIntent.getActivity(
this, 0, addIntent, PendingIntent.FLAG_CANCEL_CURRENT
this, 0, addIntent, PendingIntent.FLAG_UPDATE_CURRENT
))
.setDeleteIntent(PendingIntent.getBroadcast(
this, 1002,
Expand Down

0 comments on commit ae3244f

Please sign in to comment.