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

Commit ff5dde9f authored by Lucas Dupin's avatar Lucas Dupin Committed by android-build-merger
Browse files

Merge "Fix exception on non face-enabled devices" into qt-r1-dev am: 1a3112ab

am: d3e686fc

Change-Id: I067abe881c9ac0f511cf184343c12a6ac74d1e9d
parents c0fbb533 d3e686fc
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.settings.security;

import android.content.Context;
import android.content.pm.PackageManager;
import android.hardware.face.FaceManager;
import android.provider.Settings;

@@ -30,8 +31,10 @@ public class LockscreenBypassPreferenceController extends TogglePreferenceContro

    public LockscreenBypassPreferenceController(Context context, String preferenceKey) {
        super(context, preferenceKey);
        if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FACE)) {
            mFaceManager = context.getSystemService(FaceManager.class);
        }
    }

    @Override
    public boolean isChecked() {