Don't show reviews notification action for contacts
This commit is contained in:
parent
d79f1c0676
commit
c71f9f1d78
|
@ -200,10 +200,13 @@ public class NotificationHelper {
|
||||||
private static void addCallNotificationIntents(Context context,
|
private static void addCallNotificationIntents(Context context,
|
||||||
NotificationCompat.Builder builder,
|
NotificationCompat.Builder builder,
|
||||||
NumberInfo numberInfo) {
|
NumberInfo numberInfo) {
|
||||||
builder.setContentIntent(createInfoIntent(context, numberInfo))
|
builder.setContentIntent(createInfoIntent(context, numberInfo));
|
||||||
.addAction(0, context.getString(R.string.online_reviews),
|
|
||||||
|
if (numberInfo.contactItem == null) {
|
||||||
|
builder.addAction(0, context.getString(R.string.online_reviews),
|
||||||
createReviewsIntent(context, numberInfo));
|
createReviewsIntent(context, numberInfo));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private static PendingIntent createInfoIntent(Context context, NumberInfo numberInfo) {
|
private static PendingIntent createInfoIntent(Context context, NumberInfo numberInfo) {
|
||||||
return pendingActivity(context, InfoDialogActivity.getIntent(context, numberInfo.number));
|
return pendingActivity(context, InfoDialogActivity.getIntent(context, numberInfo.number));
|
||||||
|
|
Loading…
Reference in New Issue