File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
android/app/src/main/java/me/kavishdevar/aln/services Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -324,10 +324,10 @@ class AirPodsService: Service() {
324324 connectionReceiver = object : BroadcastReceiver () {
325325 override fun onReceive (context : Context ? , intent : Intent ? ) {
326326 if (intent?.action == AirPodsNotifications .Companion .AIRPODS_CONNECTION_DETECTED ) {
327+ device = intent.getParcelableExtra(" device" , BluetoothDevice ::class .java)!!
327328 val name = this @AirPodsService.getSharedPreferences(" settings" , MODE_PRIVATE )
328329 .getString(" name" , device?.name)
329330 Log .d(" AirPodsService" , " $name connected" )
330- device = intent.getParcelableExtra(" device" , BluetoothDevice ::class .java)!!
331331 showPopup(this @AirPodsService, name.toString())
332332 connectToSocket(device!! )
333333 updateNotificationContent(true , name.toString(), batteryNotification.getBattery())
You can’t perform that action at this time.
0 commit comments