Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe710890 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add call eligibility checks."

parents 33780141 94a7b3bf
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -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)) {