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

Commit 5a6441d2 authored by Wei Liu's avatar Wei Liu
Browse files

Do not ring in theater mode.

b/23979622

Change-Id: Ie08f04f12df144e68acac1972857037b14e57921
parent f62ecf02
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);