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

Commit fed89254 authored by William Escande's avatar William Escande
Browse files

SystemServer: move smaller if branch first

Bug: 333097218
Test: m .
Flag: Exempt, mechanical no-op
Change-Id: Ie4b0b6f81554bcfb5748e8ed56aed711c27b0711
parent 9a5fa11e
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -469,8 +469,10 @@ class BluetoothManagerService {
            AutoOnFeature.pause();
        }

        if (currentState == STATE_ON) {
            sendDisableMsg(reason);
        } else if (currentState == STATE_BLE_ON) {
            // If currentState is BLE_ON make sure we trigger stopBle
        if (currentState == STATE_BLE_ON) {
            mAdapterLock.readLock().lock();
            try {
                if (mAdapter != null) {
@@ -484,8 +486,6 @@ class BluetoothManagerService {
            } finally {
                mAdapterLock.readLock().unlock();
            }
        } else if (currentState == STATE_ON) {
            sendDisableMsg(reason);
        }
    }