Fix dismissable incall notification

This commit is contained in:
Sylvain Berfini 2014-07-09 15:56:47 +02:00
parent 6797a1e2c2
commit 8b465caeb8
2 changed files with 3 additions and 1 deletions

View file

@ -84,6 +84,7 @@ 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;
} }

View file

@ -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;
} }