Skip to content

Commit 02edb51

Browse files
committed
android: fix a2dp connection
1 parent 10fc96d commit 02edb51

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

android/app/src/main/java/me/kavishdevar/librepods/services/AirPodsService.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,7 @@ class AirPodsService : Service(), SharedPreferences.OnSharedPreferenceChangeList
18321832
updatedNotification = NotificationCompat.Builder(this, "background_service_status")
18331833
.setSmallIcon(R.drawable.airpods)
18341834
.setContentTitle("AirPods not connected")
1835-
.setContentText("Tap to open app")
1835+
.setContentText("Tap to open app")
18361836
.setContentIntent(pendingIntent)
18371837
.setCategory(Notification.CATEGORY_SERVICE)
18381838
.setPriority(NotificationCompat.PRIORITY_LOW)
@@ -2179,7 +2179,6 @@ class AirPodsService : Service(), SharedPreferences.OnSharedPreferenceChangeList
21792179

21802180
fun manuallyCheckForAudioSource() {
21812181
val shouldResume = MediaController.getMusicActive()
2182-
if (airpodsInstance == null) return
21832182
if ((earDetectionNotification.status[0] != 0.toByte() && earDetectionNotification.status[1] != 0.toByte()) || disconnectedBecauseReversed || otherDeviceTookOver) {
21842183
Log.d(
21852184
TAG,

0 commit comments

Comments
 (0)