summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--java/com/android/incallui/StatusBarNotifier.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/java/com/android/incallui/StatusBarNotifier.java b/java/com/android/incallui/StatusBarNotifier.java
index 4026be712..1d73fe8e7 100644
--- a/java/com/android/incallui/StatusBarNotifier.java
+++ b/java/com/android/incallui/StatusBarNotifier.java
@@ -455,7 +455,7 @@ public class StatusBarNotifier
addVideoCallAction(builder);
} else {
addAnswerAction(builder);
- addSpeakeasyAnswerAction(builder);
+ addSpeakeasyAnswerAction(builder, call);
}
}
}
@@ -874,7 +874,11 @@ public class StatusBarNotifier
.build());
}
- private void addSpeakeasyAnswerAction(Notification.Builder builder) {
+ private void addSpeakeasyAnswerAction(Notification.Builder builder, DialerCall call) {
+ if (!call.isSpeakEasyEligible()) {
+ return;
+ }
+
if (!ConfigProviderComponent.get(context)
.getConfigProvider()
.getBoolean("enable_speakeasy_notification_button", false)) {