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

Commit ae9c49bc authored by Joel Galenson's avatar Joel Galenson
Browse files

Make the location access check read the flag as a boolean.

Bug: 112390914
Test: atest CtsPermissionTestCases:android.permission.cts.LocationAccessCheckTest
Change-Id: Ifbf8eea9a378a233f118541af96754f0825f5696
parent 8d679bd8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -660,7 +660,7 @@ public final class Utils {
     * @return {@code true} iff the Location Access Check is enabled.
     */
    public static boolean isLocationAccessCheckEnabled() {
        return DeviceConfig.getProperty(DeviceConfig.Privacy.NAMESPACE,
                DeviceConfig.Privacy.PROPERTY_LOCATION_ACCESS_CHECK_ENABLED) != null;
        return Boolean.parseBoolean(DeviceConfig.getProperty(DeviceConfig.Privacy.NAMESPACE,
                DeviceConfig.Privacy.PROPERTY_LOCATION_ACCESS_CHECK_ENABLED));
    }
}