Loading src/com/android/server/telecom/CallAudioRouteStateMachine.java +22 −20 Original line number Diff line number Diff line Loading @@ -1741,7 +1741,7 @@ public class CallAudioRouteStateMachine extends StateMachine { final boolean hasAnyCalls = mCallsManager.hasAnyCalls(); // These APIs are all via two-way binder calls so can potentially block Telecom. Since none // of this has to happen in the Telecom lock we'll offload it to the async executor. mAsyncTaskExecutor.execute(() -> { AudioDeviceInfo speakerDevice = null; for (AudioDeviceInfo info : mAudioManager.getAvailableCommunicationDevices()) { if (info.getType() == AudioDeviceInfo.TYPE_BUILTIN_SPEAKER) { Loading @@ -1762,7 +1762,9 @@ public class CallAudioRouteStateMachine extends StateMachine { mAudioManager.clearCommunicationDevice(); } } mStatusBarNotifier.notifySpeakerphone(hasAnyCalls && speakerOn); final boolean isSpeakerOn = speakerOn; mAsyncTaskExecutor.execute(() -> { mStatusBarNotifier.notifySpeakerphone(hasAnyCalls && isSpeakerOn); }); } Loading Loading
src/com/android/server/telecom/CallAudioRouteStateMachine.java +22 −20 Original line number Diff line number Diff line Loading @@ -1741,7 +1741,7 @@ public class CallAudioRouteStateMachine extends StateMachine { final boolean hasAnyCalls = mCallsManager.hasAnyCalls(); // These APIs are all via two-way binder calls so can potentially block Telecom. Since none // of this has to happen in the Telecom lock we'll offload it to the async executor. mAsyncTaskExecutor.execute(() -> { AudioDeviceInfo speakerDevice = null; for (AudioDeviceInfo info : mAudioManager.getAvailableCommunicationDevices()) { if (info.getType() == AudioDeviceInfo.TYPE_BUILTIN_SPEAKER) { Loading @@ -1762,7 +1762,9 @@ public class CallAudioRouteStateMachine extends StateMachine { mAudioManager.clearCommunicationDevice(); } } mStatusBarNotifier.notifySpeakerphone(hasAnyCalls && speakerOn); final boolean isSpeakerOn = speakerOn; mAsyncTaskExecutor.execute(() -> { mStatusBarNotifier.notifySpeakerphone(hasAnyCalls && isSpeakerOn); }); } Loading