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

Commit b2742186 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Bluetooth: MAP: Remove unwanted acquisition of PM wake lock"

parents 75a73db6 87047c17
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -108,8 +108,6 @@ public class BluetoothMapService extends ProfileService {

    private static final int DISCONNECT_MAP = 3;

    private PowerManager.WakeLock mWakeLock = null;

    private BluetoothAdapter mAdapter;

    private BluetoothMapAuthenticator mAuth = null;
@@ -689,14 +687,6 @@ public class BluetoothMapService extends ProfileService {
            }
            Context context = getApplicationContext();
            Log.d(TAG, "after getting application context");
            // acquire the wakeLock before start Obex transaction thread
            if (mWakeLock == null) {
                PowerManager pm = (PowerManager)getSystemService(Context.POWER_SERVICE);
                mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
                     "StartingObexMapTransaction");
                mWakeLock.setReferenceCounted(false);
                mWakeLock.acquire();
            }
            if(mBluetoothMnsObexClient == null)
                mBluetoothMnsObexClient = new BluetoothMnsObexClient(context, mRemoteDevice);
            mBluetoothMnsObexClient.initObserver(mSessionStatusHandler, mMasId);