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

Commit 0f5f0568 authored by Michael Dooley's avatar Michael Dooley Committed by android-build-merger
Browse files

Merge "Adding config to disable temporary permission granting" into oc-dev

am: b65719af

Change-Id: Ic895b3b82bb0fcfc375354665b8779716f601dee
parents 82ce167b b65719af
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -46,4 +46,8 @@
         different source (connection service) from the existing ringing call when reaching
         maximum ringing calls. -->
    <bool name="silence_incoming_when_different_service_and_maximum_ringing">false</bool>

    <!-- Determines if the granting temporary location permission to the default dialer
         during an emergency call should be allowed.  The default is false. -->
    <bool name="grant_location_permission_enabled">false</bool>
</resources>
+4 −0
Original line number Diff line number Diff line
@@ -75,6 +75,10 @@ public class EmergencyCallHelper {
    }

    private boolean shouldGrantTemporaryLocationPermission(Call call) {
        if (!mContext.getResources().getBoolean(R.bool.grant_location_permission_enabled)) {
            Log.i(this, "ShouldGrantTemporaryLocationPermission, disabled by config");
            return false;
        }
        if (call == null) {
            Log.i(this, "ShouldGrantTemporaryLocationPermission, no call");
            return false;