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

Commit 6cefe455 authored by d34d's avatar d34d Committed by Rashed Abdel-Tawab
Browse files

LockPatternUtils: Make settings getter and setters protected

This patch will allow us to extend LockPatternUtils in lineage-sdk
and have access to getting and setting lock settings, and minimize
code changes to the original LockPatternUtils class.

Change-Id: I3417f64db1f05cffab47328df574f23dd20776d5
parent 41da7615
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -1233,7 +1233,7 @@ public class LockPatternUtils {
        return deadline;
    }

    private boolean getBoolean(String secureSettingKey, boolean defaultValue, int userId) {
    protected boolean getBoolean(String secureSettingKey, boolean defaultValue, int userId) {
        try {
            return getLockSettings().getBoolean(secureSettingKey, defaultValue, userId);
        } catch (RemoteException re) {
@@ -1241,7 +1241,7 @@ public class LockPatternUtils {
        }
    }

    private void setBoolean(String secureSettingKey, boolean enabled, int userId) {
    protected void setBoolean(String secureSettingKey, boolean enabled, int userId) {
        try {
            getLockSettings().setBoolean(secureSettingKey, enabled, userId);
        } catch (RemoteException re) {
@@ -1250,7 +1250,7 @@ public class LockPatternUtils {
        }
    }

    private long getLong(String secureSettingKey, long defaultValue, int userHandle) {
    protected long getLong(String secureSettingKey, long defaultValue, int userHandle) {
        try {
            return getLockSettings().getLong(secureSettingKey, defaultValue, userHandle);
        } catch (RemoteException re) {
@@ -1258,7 +1258,7 @@ public class LockPatternUtils {
        }
    }

    private void setLong(String secureSettingKey, long value, int userHandle) {
    protected void setLong(String secureSettingKey, long value, int userHandle) {
        try {
            getLockSettings().setLong(secureSettingKey, value, userHandle);
        } catch (RemoteException re) {
@@ -1267,7 +1267,7 @@ public class LockPatternUtils {
        }
    }

    private String getString(String secureSettingKey, int userHandle) {
    protected String getString(String secureSettingKey, int userHandle) {
        try {
            return getLockSettings().getString(secureSettingKey, null, userHandle);
        } catch (RemoteException re) {
@@ -1275,7 +1275,7 @@ public class LockPatternUtils {
        }
    }

    private void setString(String secureSettingKey, String value, int userHandle) {
    protected void setString(String secureSettingKey, String value, int userHandle) {
        try {
            getLockSettings().setString(secureSettingKey, value, userHandle);
        } catch (RemoteException re) {