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

Commit f61e6b28 authored by Android Build Merger (Role)'s avatar Android Build Merger (Role) Committed by Android (Google) Code Review
Browse files

Merge "Merge "Calls unlinkToDeath in binderDied to deregister" am: 72fa61b3...

Merge "Merge "Calls unlinkToDeath in binderDied to deregister" am: 72fa61b3 am: d961f427" into pi-dev-plus-aosp
parents b178b2d4 e1834152
Loading
Loading
Loading
Loading
+1 −20
Original line number Diff line number Diff line
@@ -637,29 +637,10 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
                IBinder token = entry.getKey();
                ClientDeathRecipient deathRec = entry.getValue();
                if (deathRec.equals(this)) {
                    mBleApps.remove(token);
                    updateBleAppCount(token, false, mPackageName);
                    break;
                }
            }

            if (isBleAppPresent()) {
                // Nothing to do, another app is here.
                return;
            }
            if (DBG) {
                Slog.d(TAG, "Disabling LE only mode after application crash");
            }
            try {
                mBluetoothLock.readLock().lock();
                if (mBluetooth != null && mBluetooth.getState() == BluetoothAdapter.STATE_BLE_ON) {
                    mEnable = false;
                    mBluetooth.onBrEdrDown();
                }
            } catch (RemoteException e) {
                Slog.e(TAG, "Unable to call onBrEdrDown", e);
            } finally {
                mBluetoothLock.readLock().unlock();
            }
        }

        public String getPackageName() {