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

Commit 4bfe02a9 authored by Wei Liu's avatar Wei Liu Committed by Android Git Automerger
Browse files

am e8e7b7b5: Merge "Do not ring in theater mode." into cw-e-dev

* commit 'e8e7b7b5':
  Do not ring in theater mode.
parents b14f9106 e8e7b7b5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -181,6 +181,11 @@ final class Ringer extends CallsManagerListenerBase {
        Call foregroundCall = mCallsManager.getForegroundCall();
        Log.v(this, "startRingingOrCallWaiting, foregroundCall: %s.", foregroundCall);

        if (Settings.Global.getInt(mContext.getContentResolver(), Settings.Global.THEATER_MODE_ON,
                0) == 1) {
            return;
        }

        if (mRingingCalls.contains(foregroundCall)) {
            // The foreground call is one of incoming calls so play the ringer out loud.
            stopCallWaiting(call);