Bluetooth権限のチェックを削除(既にチェックされているため)

This commit is contained in:
ろむねこ 2024-07-11 15:34:47 +09:00
parent d53691236f
commit 66fdb04556
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -268,14 +268,6 @@ public class TestService extends Service {
Boolean isInCar = pref.getBoolean("isInCarPref", false);
if (ActivityCompat.checkSelfPermission(context, android.Manifest.permission.BLUETOOTH_CONNECT) != PackageManager.PERMISSION_GRANTED) {
Log.d("BT", "No permission to connect bluetooth devices");
return;
}
if (BluetoothDevice.ACTION_ACL_CONNECTED.equals(action)) {
//Do something if connected
//Bluetoothデバイスが接続されたときの処理