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

Commit 3756b409 authored by Paul Mclean's avatar Paul Mclean Committed by Android (Google) Code Review
Browse files

Merge "AudioService: fix crash when mediaserver killed"

parents c6dbfece 413d307c
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -4111,8 +4111,9 @@ public class AudioService extends IAudioService.Stub {
                        Iterator i = set.iterator();
                        Iterator i = set.iterator();
                        while (i.hasNext()) {
                        while (i.hasNext()) {
                            Map.Entry device = (Map.Entry)i.next();
                            Map.Entry device = (Map.Entry)i.next();
                            DeviceListSpec spec = (DeviceListSpec)device.getValue();
                            AudioSystem.setDeviceConnectionState(
                            AudioSystem.setDeviceConnectionState(
                                                            ((Integer)device.getKey()).intValue(),
                                                            spec.mDeviceType,
                                                            AudioSystem.DEVICE_STATE_AVAILABLE,
                                                            AudioSystem.DEVICE_STATE_AVAILABLE,
                                                            (String)device.getValue(),
                                                            (String)device.getValue(),
                                                            "unknown-device");
                                                            "unknown-device");