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

Commit d9863f50 authored by Prasath Balakrishnan's avatar Prasath Balakrishnan Committed by Linux Build Service Account
Browse files

Mute & Speaker Icon display in notification bar

During active call, when Speaker/mute is selected display icon in
the notification bar.

Change-Id: I221572ad5140f8f1e07681d2da7ae6ed86a6a529
CRs-Fixed: 1015304
parent 4a9c4b7e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1120,6 +1120,7 @@ public class CallAudioRouteStateMachine extends StateMachine {
        if (mAudioManager.isSpeakerphoneOn() != on) {
            Log.i(this, "turning speaker phone %s", on);
            mAudioManager.setSpeakerphoneOn(on);
            mStatusBarNotifier.notifySpeakerphone(on);
        }
    }

@@ -1154,6 +1155,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.");