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

Commit 168c7e0f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Set the Adapter Service onCreate()"

parents 01df3e14 eb00f18a
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -521,6 +521,8 @@ public class AdapterService extends Service {
        registerReceiver(mAlarmBroadcastReceiver, new IntentFilter(ACTION_ALARM_WAKEUP));
        mProfileObserver = new ProfileObserver(getApplicationContext(), this, new Handler());
        mProfileObserver.start();

        setAdapterService(this);
    }

    @Override
@@ -576,9 +578,6 @@ public class AdapterService extends Service {
            // Ignore.
        }

        //FIXME: Set static instance here???
        setAdapterService(this);

        //Start Gatt service
        setGattProfileServiceState(supportedProfileServices,BluetoothAdapter.STATE_ON);
    }