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

Commit b19cc59f authored by Roman Birg's avatar Roman Birg
Browse files

Keyguard: disable keyguard based on Profile config



Change-Id: I26c98c7471c32eff7c39cbb944a55d7f1b5c7f83
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 71cb859d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ import android.app.Activity;
import android.app.ActivityManagerNative;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.Profile;
import android.app.SearchManager;
import android.app.StatusBarManager;
import android.content.BroadcastReceiver;
@@ -932,6 +933,11 @@ public class KeyguardViewMediator {
            return;
        }

        if (mLockPatternUtils.getActiveProfileLockMode() == Profile.LockMode.DISABLE) {
            if (DEBUG) Log.d(TAG, "isKeyguardDisabled: keyguard is disabled by profile");
            return;
        }

        if (DEBUG) Log.d(TAG, "doKeyguard: showing the lock screen");
        showLocked(options);
    }