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

Commit 4cc14ad4 authored by William Escande's avatar William Escande
Browse files

McpService: Move variable to final

Also fix some typo

Bug: 311772251
Test: None
Flag: EXEMPT refactor
Change-Id: Icffca146fd1bc8a73fa27e1333dcf3c9ae7fab4c
parent 87797e96
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -51,8 +51,8 @@ public class McpService extends ProfileService {
    @GuardedBy("mLock")
    private MediaControlProfile mGmcs;

    private Map<BluetoothDevice, Integer> mDeviceAuthorizations = new HashMap<>();
    private Handler mHandler = new Handler(Looper.getMainLooper());
    private final Map<BluetoothDevice, Integer> mDeviceAuthorizations = new HashMap<>();
    private final Handler mHandler = new Handler(Looper.getMainLooper());

    public McpService(Context ctx) {
        super(ctx);
@@ -234,7 +234,7 @@ public class McpService extends ProfileService {

        LeAudioService leAudioService = LeAudioService.getLeAudioService();
        if (leAudioService == null) {
            Log.e(TAG, "MCS access not permited. LeAudioService not available");
            Log.e(TAG, "MCS access not permitted. LeAudioService not available");
            return BluetoothDevice.ACCESS_UNKNOWN;
        }

@@ -245,7 +245,7 @@ public class McpService extends ProfileService {
            return BluetoothDevice.ACCESS_ALLOWED;
        }

        Log.e(TAG, "MCS access not permited");
        Log.e(TAG, "MCS access not permitted");
        return BluetoothDevice.ACCESS_UNKNOWN;
    }