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

Commit c722ad9c authored by Yorke Lee's avatar Yorke Lee Committed by Android (Google) Code Review
Browse files

Merge "Don't crash if unbinding from InCallService fails" into mnc-dev

parents 43e094ff d794fd21
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -273,7 +273,11 @@ public final class InCallController extends CallsManagerListenerBase {
        while (iterator.hasNext()) {
            final Map.Entry<ComponentName, InCallServiceConnection> entry = iterator.next();
            Log.i(this, "Unbinding from InCallService %s", entry.getKey());
            try {
                mContext.unbindService(entry.getValue());
            } catch (Exception e) {
                Log.e(this, e, "Exception while unbinding from InCallService");
            }
            iterator.remove();
        }
        mInCallServices.clear();