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

Commit 21999f4d authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Catch IAE in BluetoothManagerService"

parents faa264e0 aed442ee
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;