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

Commit ce641904 authored by mike dooley's avatar mike dooley
Browse files

Adding config to disable temporary permission granting

And disable temporary permission granting by default.

Test: manual tests
Bug: 37475749
Change-Id: I53743cfd9b4f12d6c848f27acd16920d6939ad9c
parent 4c0a602e
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;