android: connect to audio when reconnecting to last connected device

This commit is contained in:
Kavish Devar
2026-04-28 12:12:45 +05:30
parent 60e865fc1f
commit 9eb6010a25

View File

@@ -3171,6 +3171,7 @@ class AirPodsService : Service(), SharedPreferences.OnSharedPreferenceChangeList
CoroutineScope(Dispatchers.IO).launch {
Log.d(TAG, "connecting to $macAddress")
connectToSocket(bluetoothAdapter, device!!, manual = true)
connectAudio(this@AirPodsService, device!!)
}
}
}