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

Commit 8015ada1 authored by Mady Mellor's avatar Mady Mellor Committed by android-build-merger
Browse files

Merge "Add check for the device having "feature face" before requesting the...

Merge "Add check for the device having "feature face" before requesting the service" into qt-r1-dev am: 0292861a
am: 8e1884a1

Change-Id: I85652f1daddbb95ff9a6542d46c8b82d7010b6dd
parents 147706da 8e1884a1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.systemui.statusbar.phone

import android.content.Context
import android.content.pm.PackageManager
import android.hardware.biometrics.BiometricSourceType
import android.hardware.face.FaceManager
import android.provider.Settings
@@ -73,6 +74,9 @@ class KeyguardBypassController {
                }
            }
        })
        if (!context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_FACE)) {
            return
        }
        val faceManager = context.getSystemService(FaceManager::class.java)
        if (faceManager?.isHardwareDetected != true) {
            return