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

Commit 413d307c authored by Phil Burk's avatar Phil Burk
Browse files

AudioService: fix crash when mediaserver killed



Bug: 19847028
Change-Id: I4acacd8a6d20317d180a6994158abc0b2957280c
Signed-off-by: default avatarPhil Burk <philburk@google.com>
parent 77a7308d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4111,8 +4111,9 @@ public class AudioService extends IAudioService.Stub {
                        Iterator i = set.iterator();
                        while (i.hasNext()) {
                            Map.Entry device = (Map.Entry)i.next();
                            DeviceListSpec spec = (DeviceListSpec)device.getValue();
                            AudioSystem.setDeviceConnectionState(
                                                            ((Integer)device.getKey()).intValue(),
                                                            spec.mDeviceType,
                                                            AudioSystem.DEVICE_STATE_AVAILABLE,
                                                            (String)device.getValue(),
                                                            "unknown-device");