discord-jadx/app/src/main/java/com/discord/utilities/media/AudioOutputMonitor$handleIn...

34 lines
1.5 KiB
Java

package com.discord.utilities.media;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothProfile;
import java.util.List;
/* compiled from: AudioOutputMonitor.kt */
public final class AudioOutputMonitor$handleInitialState$1 implements BluetoothProfile.ServiceListener {
public final /* synthetic */ BluetoothAdapter $bluetoothAdapter;
public final /* synthetic */ AudioOutputMonitor this$0;
public AudioOutputMonitor$handleInitialState$1(AudioOutputMonitor audioOutputMonitor, BluetoothAdapter bluetoothAdapter) {
this.this$0 = audioOutputMonitor;
this.$bluetoothAdapter = bluetoothAdapter;
}
@Override // android.bluetooth.BluetoothProfile.ServiceListener
public void onServiceConnected(int i, BluetoothProfile bluetoothProfile) {
if (bluetoothProfile != null) {
List<BluetoothDevice> connectedDevices = bluetoothProfile.getConnectedDevices();
if (connectedDevices != null) {
for (BluetoothDevice bluetoothDevice : connectedDevices) {
AudioOutputMonitor.access$handleBluetoothConnectionUpdate(this.this$0, bluetoothProfile.getConnectionState(bluetoothDevice), bluetoothDevice);
}
}
this.$bluetoothAdapter.closeProfileProxy(1, bluetoothProfile);
}
}
@Override // android.bluetooth.BluetoothProfile.ServiceListener
public void onServiceDisconnected(int i) {
}
}