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

Commit 037895c2 authored by David Duarte's avatar David Duarte
Browse files

SapService: Move mState initialization to declaration

Bug: 305741984
Test: m Bluetooth
Flag: EXEMPT no-op
Change-Id: Ie9a66d1e1022596da210359bd1764fbf7cd37850
parent 204ef4ca
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -93,7 +93,7 @@ public class SapService extends ProfileService implements AdapterService.Bluetoo
    private BluetoothDevice mRemoteDevice = null;
    private static String sRemoteDeviceName = null;
    private volatile boolean mInterrupted;
    private int mState;
    private int mState = BluetoothSap.STATE_DISCONNECTED;
    private SapServer mSapServer = null;
    private AlarmManager mAlarmManager = null;
    private boolean mRemoveTimeoutMsg = false;
@@ -112,7 +112,6 @@ public class SapService extends ProfileService implements AdapterService.Bluetoo
    }

    public SapService() {
        mState = BluetoothSap.STATE_DISCONNECTED;
        BluetoothSap.invalidateBluetoothGetConnectionStateCache();
    }