Skip to content
Commit d40b961a authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

[DO NOT MERGE] AudioService: better mic muting API behavior with errors

 If an error is reported when changing the microphone mute state,
log it but still fire ACTION_MICROPHONE_MUTE_CHANGED intent.
 Make AudioManager.isMicrophoneMute() return the "real" mute
state, not the intended mute state, by returning the cache
of the state returned by AudioSystem whenever a change is
attempted.

Bug: 153103117
Test: atest AudioServiceTest
Change-Id: Id79c789fff5e675afbc43e6e6dd34cc78dc26c6d
parent 42aa54c1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment