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

Commit df82eeeb authored by Jakub Tyszkowski's avatar Jakub Tyszkowski Committed by Gerrit Code Review
Browse files

Merge "Fix calling method on the stopped service" into main

parents 58bf9832 8af9af99
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1253,6 +1253,11 @@ public class A2dpService extends ProfileService {
    }

    void connectionStateChanged(BluetoothDevice device, int fromState, int toState) {
        if (!isAvailable()) {
            Log.w(TAG, "connectionStateChanged: service is not available");
            return;
        }

        if ((device == null) || (fromState == toState)) {
            return;
        }
+5 −0
Original line number Diff line number Diff line
@@ -677,6 +677,11 @@ public class BassClientService extends ProfileService {

    synchronized void connectionStateChanged(BluetoothDevice device, int fromState,
                                             int toState) {
        if (!isAvailable()) {
            Log.w(TAG, "connectionStateChanged: service is not available");
            return;
        }

        if ((device == null) || (fromState == toState)) {
            Log.e(TAG, "connectionStateChanged: unexpected invocation. device=" + device
                    + " fromState=" + fromState + " toState=" + toState);
+5 −0
Original line number Diff line number Diff line
@@ -1022,6 +1022,11 @@ public class CsipSetCoordinatorService extends ProfileService {

    @VisibleForTesting
    synchronized void connectionStateChanged(BluetoothDevice device, int fromState, int toState) {
        if (!isAvailable()) {
            Log.w(TAG, "connectionStateChanged: service is not available");
            return;
        }

        if ((device == null) || (fromState == toState)) {
            Log.e(TAG,
                    "connectionStateChanged: unexpected invocation. device=" + device
+5 −0
Original line number Diff line number Diff line
@@ -1099,6 +1099,11 @@ public class VolumeControlService extends ProfileService {
    @VisibleForTesting
    synchronized void connectionStateChanged(BluetoothDevice device, int fromState,
                                             int toState) {
        if (!isAvailable()) {
            Log.w(TAG, "connectionStateChanged: service is not available");
            return;
        }

        if ((device == null) || (fromState == toState)) {
            Log.e(TAG, "connectionStateChanged: unexpected invocation. device=" + device
                    + " fromState=" + fromState + " toState=" + toState);