Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff9608e1 authored by Kyunglyul Hyun's avatar Kyunglyul Hyun Committed by Gerrit Code Review
Browse files

Merge "Remove descriptors of unbonded device"

parents d55767c7 67a5c38c
Loading
Loading
Loading
Loading
+8 −2
Original line number Original line Diff line number Diff line
@@ -1945,7 +1945,6 @@ public class LeAudioService extends ProfileService {
                return;
                return;
            }
            }
            removeStateMachine(device);
            removeStateMachine(device);
            mDeviceDescriptors.remove(device);
        }
        }
    }
    }


@@ -1967,6 +1966,8 @@ public class LeAudioService extends ProfileService {
            sm.doQuit();
            sm.doQuit();
            sm.cleanup();
            sm.cleanup();
            descriptor.mStateMachine = null;
            descriptor.mStateMachine = null;

            mDeviceDescriptors.remove(device);
        }
        }
    }
    }


@@ -3462,7 +3463,12 @@ public class LeAudioService extends ProfileService {
                        continue;
                        continue;
                    }
                    }


                    if (deviceDescriptor.mStateMachine != null) {
                        deviceDescriptor.mStateMachine.dump(sb);
                        deviceDescriptor.mStateMachine.dump(sb);
                    } else {
                        ProfileService.println(sb, "state machine is null");
                    }

                    ProfileService.println(sb, "    mDevInbandRingtoneEnabled: "
                    ProfileService.println(sb, "    mDevInbandRingtoneEnabled: "
                            + deviceDescriptor.mDevInbandRingtoneEnabled);
                            + deviceDescriptor.mDevInbandRingtoneEnabled);
                    ProfileService.println(sb, "    mSinkAudioLocation: "
                    ProfileService.println(sb, "    mSinkAudioLocation: "