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

Commit 843832ca authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Catch IAE in BluetoothManagerService" into tm-dev

parents a312a815 b94bfd91
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;