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

Commit 9452dbb7 authored by Hall Liu's avatar Hall Liu Committed by Android (Google) Code Review
Browse files

Merge "Notify status bar of mute and speakerphone state" into nyc-mr1-dev

parents eeeb2a10 1d025d09
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1127,6 +1127,7 @@ public class CallAudioRouteStateMachine extends StateMachine {
        if (mAudioManager.isSpeakerphoneOn() != on) {
            Log.i(this, "turning speaker phone %s", on);
            mAudioManager.setSpeakerphoneOn(on);
            mStatusBarNotifier.notifySpeakerphone(on);
        }
    }

@@ -1161,6 +1162,7 @@ public class CallAudioRouteStateMachine extends StateMachine {
                    // user and not the current foreground, which we want to avoid.
                    audio.setMicrophoneMute(
                            mute, mContext.getOpPackageName(), getCurrentUserId());
                    mStatusBarNotifier.notifyMute(mute);

                } catch (RemoteException e) {
                    Log.e(this, e, "Remote exception while toggling mute.");