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

Commit af375afb authored by Patty Huang's avatar Patty Huang Committed by Automerger Merge Worker
Browse files

Merge "Add try catch to handle IllegalStateException" am: 5c40a6fa

parents 9d3aef18 5c40a6fa
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);