Loading android/app/src/com/android/bluetooth/vc/VolumeControlService.java +6 −3 Original line number Diff line number Diff line Loading @@ -426,15 +426,18 @@ public class VolumeControlService extends ProfileService { } void messageFromNative(VolumeControlStackEvent stackEvent) { Objects.requireNonNull(stackEvent.device, "Device should never be null, event: " + stackEvent); Intent intent = null; if (stackEvent.type == VolumeControlStackEvent.EVENT_TYPE_VOLUME_STATE_CHANGED) { handleVolumeControlChanged(stackEvent.device, stackEvent.valueInt1, stackEvent.valueInt2, stackEvent.valueBool1); return; } Objects.requireNonNull(stackEvent.device, "Device should never be null, event: " + stackEvent); Intent intent = null; if (intent != null) { intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT | Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND); Loading Loading
android/app/src/com/android/bluetooth/vc/VolumeControlService.java +6 −3 Original line number Diff line number Diff line Loading @@ -426,15 +426,18 @@ public class VolumeControlService extends ProfileService { } void messageFromNative(VolumeControlStackEvent stackEvent) { Objects.requireNonNull(stackEvent.device, "Device should never be null, event: " + stackEvent); Intent intent = null; if (stackEvent.type == VolumeControlStackEvent.EVENT_TYPE_VOLUME_STATE_CHANGED) { handleVolumeControlChanged(stackEvent.device, stackEvent.valueInt1, stackEvent.valueInt2, stackEvent.valueBool1); return; } Objects.requireNonNull(stackEvent.device, "Device should never be null, event: " + stackEvent); Intent intent = null; if (intent != null) { intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT | Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND); Loading