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

Commit 5c40a6fa authored by Patty Huang's avatar Patty Huang Committed by Gerrit Code Review
Browse files

Merge "Add try catch to handle IllegalStateException"

parents e4253608 699f3101
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -290,7 +290,12 @@ public class LeAudioService extends ProfileService {
            throw new IllegalStateException("TMAP GATT server started before start() is called");
        }
        mTmapGattServer = LeAudioObjectsFactory.getInstance().getTmapGattServer(this);

        try {
            mTmapGattServer.start(tmapRoleMask);
        } catch (IllegalStateException e) {
            Log.e(TAG, "Fail to start TmapGattServer", e);
        }

        mLeAudioInbandRingtoneSupportedByPlatform =
                        BluetoothProperties.isLeAudioInbandRingtoneSupported().orElse(true);