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

Commit 591a3044 authored by Ajay Panicker's avatar Ajay Panicker
Browse files

Enable the AVRCP Service by default (1/2)

Bug: 77238060
Test: Flash a device and see that AvrcpTargetService is enabled
Change-Id: Ic08ab142bb72a96fe83372bb6409bab720739c01
parent 2fe3a700
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -112,7 +112,7 @@ public class AvrcpTargetService extends ProfileService {
    protected void setUserUnlocked(int userId) {
        Log.i(TAG, "User unlocked, initializing the service");

        if (!SystemProperties.getBoolean(AVRCP_ENABLE_PROPERTY, false)) {
        if (!SystemProperties.getBoolean(AVRCP_ENABLE_PROPERTY, true)) {
            Log.w(TAG, "Skipping initialization of the new AVRCP Target Player List");
            sInstance = null;
            return;
@@ -138,7 +138,7 @@ public class AvrcpTargetService extends ProfileService {
        filter.addAction(BluetoothA2dp.ACTION_ACTIVE_DEVICE_CHANGED);
        registerReceiver(mReceiver, filter);

        if (!SystemProperties.getBoolean(AVRCP_ENABLE_PROPERTY, false)) {
        if (!SystemProperties.getBoolean(AVRCP_ENABLE_PROPERTY, true)) {
            Log.w(TAG, "Skipping initialization of the new AVRCP Target Service");
            sInstance = null;
            return true;