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

Commit ec764cf5 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 4388906 from 87684090 to oc-mr1-release

Change-Id: I9a16d1a66ad763bc17f7965c7f6352c622e905b1
parents 6dc5220d 87684090
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -756,6 +756,10 @@ public class InCallController extends CallsManagerListenerBase {
            // We are bound, and we are connected.
            adjustServiceBindingsForEmergency();

            // This is in case an emergency call is added while there is an existing call.
            mEmergencyCallHelper.maybeGrantTemporaryLocationPermission(call,
                    mCallsManager.getCurrentUserHandle());

            Log.i(this, "onCallAdded: %s", call);
            // Track the call if we don't already know about it.
            addCall(call);
@@ -807,6 +811,8 @@ public class InCallController extends CallsManagerListenerBase {
                    // Check again to make sure there are no active calls.
                    if (mCallsManager.getCalls().isEmpty()) {
                        unbindFromServices();

                        mEmergencyCallHelper.maybeRevokeTemporaryLocationPermission();
                    }
                }
            }.prepare(), mTimeoutsAdapter.getCallRemoveUnbindInCallServicesDelay(