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