Removed use of NotificationBuilder setContextual, broke Android 10 notifications

This commit is contained in:
Sylvain Berfini 2019-09-26 15:25:30 +02:00
parent 5546872d84
commit 95995aef2b

View file

@ -63,7 +63,6 @@ public class ApiTwentyNinePlus {
.addRemoteInput(remoteInput) .addRemoteInput(remoteInput)
.setAllowGeneratedReplies(true) .setAllowGeneratedReplies(true)
.setSemanticAction(Notification.Action.SEMANTIC_ACTION_REPLY) .setSemanticAction(Notification.Action.SEMANTIC_ACTION_REPLY)
.setContextual(true)
.build(); .build();
} }
@ -86,7 +85,6 @@ public class ApiTwentyNinePlus {
context.getString(R.string.notification_mark_as_read_label), context.getString(R.string.notification_mark_as_read_label),
markAsReadPendingIntent) markAsReadPendingIntent)
.setSemanticAction(Notification.Action.SEMANTIC_ACTION_MARK_AS_READ) .setSemanticAction(Notification.Action.SEMANTIC_ACTION_MARK_AS_READ)
.setContextual(true)
.build(); .build();
} }
@ -103,7 +101,6 @@ public class ApiTwentyNinePlus {
R.drawable.call_audio_start, R.drawable.call_audio_start,
context.getString(R.string.notification_call_answer_label), context.getString(R.string.notification_call_answer_label),
answerPendingIntent) answerPendingIntent)
.setContextual(true)
.build(); .build();
} }
@ -120,7 +117,6 @@ public class ApiTwentyNinePlus {
R.drawable.call_hangup, R.drawable.call_hangup,
context.getString(R.string.notification_call_hangup_label), context.getString(R.string.notification_call_hangup_label),
hangupPendingIntent) hangupPendingIntent)
.setContextual(true)
.build(); .build();
} }
} }