Fix dismissable incall notification
This commit is contained in:
parent
6797a1e2c2
commit
8b465caeb8
2 changed files with 3 additions and 1 deletions
|
@ -84,6 +84,7 @@ public class ApiElevenPlus {
|
|||
.setContentIntent(intent)
|
||||
.setWhen(System.currentTimeMillis())
|
||||
.setLargeIcon(contactIcon).getNotification();
|
||||
notif.flags |= Notification.FLAG_ONGOING_EVENT;
|
||||
|
||||
return notif;
|
||||
}
|
||||
|
|
|
@ -72,6 +72,7 @@ public class ApiSixteenPlus {
|
|||
.setWhen(System.currentTimeMillis())
|
||||
.setLargeIcon(contactIcon).build();
|
||||
|
||||
notif.flags |= Notification.FLAG_ONGOING_EVENT;
|
||||
return notif;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue