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

Commit 0ebbe9d1 authored by Sungsoo Lim's avatar Sungsoo Lim Committed by Android Build Coastguard Worker
Browse files

Catch IAE in BluetoothManagerService

Bug: 237175319
Tag: #refactor
Test: build
Change-Id: I7d7ef16387756a53115701c461fa735f214c3f25
(cherry picked from commit aed442ee)
(cherry picked from commit b94bfd91)
Merged-In: I7d7ef16387756a53115701c461fa735f214c3f25
parent 1eb35585
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -2189,7 +2189,11 @@ public 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;