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

Commit c164123c authored by Jean-Michel Trivi's avatar Jean-Michel Trivi Committed by android-build-merger
Browse files

AudioService: device connection intent: never send null action

am: 87a264df

Change-Id: I1fd6f458bdc4a66a9d2a65d6f7d1bbdcf93b270a
parents 0877b99a 87a264df
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -5470,6 +5470,10 @@ public class AudioService extends IAudioService.Stub
            configureHdmiPlugIntent(intent, state);
        }

        if (intent.getAction() == null) {
            return;
        }

        intent.putExtra(CONNECT_INTENT_KEY_STATE, state);
        intent.putExtra(CONNECT_INTENT_KEY_ADDRESS, address);
        intent.putExtra(CONNECT_INTENT_KEY_PORT_NAME, deviceName);
@@ -5543,9 +5547,7 @@ public class AudioService extends IAudioService.Stub
                    }
                }
            }
            if (device != AudioSystem.DEVICE_IN_WIRED_HEADSET) {
            sendDeviceConnectionIntent(device, state, address, deviceName);
            }
            updateAudioRoutes(device, state);
        }
    }