android: fix a2dp connection

This commit is contained in:
Kavish Devar
2025-10-22 17:43:43 +05:30
parent 10fc96dc94
commit 02edb51e41

View File

@@ -2179,7 +2179,6 @@ class AirPodsService : Service(), SharedPreferences.OnSharedPreferenceChangeList
fun manuallyCheckForAudioSource() {
val shouldResume = MediaController.getMusicActive()
if (airpodsInstance == null) return
if ((earDetectionNotification.status[0] != 0.toByte() && earDetectionNotification.status[1] != 0.toByte()) || disconnectedBecauseReversed || otherDeviceTookOver) {
Log.d(
TAG,