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

Commit 2c694b87 authored by Zach Johnson's avatar Zach Johnson
Browse files

Simplify get sim access permission

Bug: 145171640
Test: compile && run
Change-Id: Idcf43d6b48f9cc91366fc97d3fa8bcec763697f6
parent 60b37490
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -1788,7 +1788,7 @@ public class AdapterService extends Service {

            enforceBluetoothPermission(service);

            return service.getSimAccessPermission(device);
            return service.getDeviceAccessFromPrefs(device, SIM_ACCESS_PERMISSION_PREFERENCE_FILE);
        }

        @Override
@@ -2615,10 +2615,6 @@ public class AdapterService extends Service {
        return true;
    }

    int getSimAccessPermission(BluetoothDevice device) {
        return getDeviceAccessFromPrefs(device, SIM_ACCESS_PERMISSION_PREFERENCE_FILE);
    }

    boolean setSimAccessPermission(BluetoothDevice device, int value) {
        setDeviceAccessFromPrefs(device, value, SIM_ACCESS_PERMISSION_PREFERENCE_FILE);
        return true;