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

Commit 2585aeba authored by Hyundo Moon's avatar Hyundo Moon
Browse files

MAP: Dismiss permission dialog on service stop

Bug: 297328595
Test: atest BluetoothMapService
      Also manually tested turning off Bluetooth
Change-Id: Idfdd6be78896d1cdeb4a17cdbb655ec4ca25d34c
parent 374b6562
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -1061,13 +1061,9 @@ public class BluetoothMapService extends ProfileService {
    }

    private void sendShutdownMessage() {
        // Pending messages are no longer valid. To speed up things, simply delete them.
        // We should close the Setting's permission dialog if one is open.
        if (mRemoveTimeoutMsg) {
            Intent timeoutIntent = new Intent(USER_CONFIRM_TIMEOUT_ACTION);
            Utils.sendBroadcast(this, timeoutIntent, null,
                    Utils.getTempAllowlistBroadcastOptions());
            mIsWaitingAuthorization = false;
            cancelUserTimeoutAlarm();
            sendConnectTimeoutMessage();
        }
        if (mSessionStatusHandler == null) {
            Log.w(TAG, "mSessionStatusHandler is null");