Don't show reviews notification action for contacts

This commit is contained in:
xynngh 2020-05-28 23:19:20 +04:00
parent d79f1c0676
commit c71f9f1d78
1 changed files with 6 additions and 3 deletions

View File

@ -200,9 +200,12 @@ public class NotificationHelper {
private static void addCallNotificationIntents(Context context,
NotificationCompat.Builder builder,
NumberInfo numberInfo) {
builder.setContentIntent(createInfoIntent(context, numberInfo))
.addAction(0, context.getString(R.string.online_reviews),
createReviewsIntent(context, numberInfo));
builder.setContentIntent(createInfoIntent(context, numberInfo));
if (numberInfo.contactItem == null) {
builder.addAction(0, context.getString(R.string.online_reviews),
createReviewsIntent(context, numberInfo));
}
}
private static PendingIntent createInfoIntent(Context context, NumberInfo numberInfo) {