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

Commit aed442ee authored by Sungsoo Lim's avatar Sungsoo Lim
Browse files

Catch IAE in BluetoothManagerService

Bug: 237175319
Tag: #refactor
Test: build
Change-Id: I7d7ef16387756a53115701c461fa735f214c3f25
parent 212b8180
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2193,7 +2193,11 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
                        break;
                    }
                    if (msg.arg1 > 0) {
                        try {
                            mContext.unbindService(psc);
                        } catch (IllegalArgumentException e) {
                            Log.e(TAG, "Unable to unbind service with intent: " + psc.mIntent, e);
                        }
                        psc.bindService(msg.arg1 - 1);
                    }
                    break;