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

Commit 79d2f1f2 authored by Emerson Pinter's avatar Emerson Pinter
Browse files

profiles: Fix "disabled" lock screen mode

Without this fix, it's impossible to select the "Disabled" lock screen
mode.

Change-Id: I214f52093d78631f799a604394e838a4b329494a
parent 4b116044
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -246,7 +246,7 @@ public final class Profile implements Parcelable, Comparable {
    }

    public void setScreenLockMode(int screenLockMode) {
        if (screenLockMode < LockMode.DEFAULT || screenLockMode > LockMode.INSECURE) {
        if (screenLockMode < LockMode.DEFAULT || screenLockMode > LockMode.DISABLE) {
            mScreenLockMode = LockMode.DEFAULT;
        } else {
            mScreenLockMode = screenLockMode;