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

Commit bbb483bb authored by Kevin Chyn's avatar Kevin Chyn Committed by android-build-merger
Browse files

Merge "Do not get setting if targetUserId == UserHandle.USER_NULL" into qt-r1-dev

am: a9247e49

Change-Id: I09700bf5955f30ca54d5c851ff5fa1dd1487823b
parents 0c6aeb6b a9247e49
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -18,10 +18,15 @@ package com.android.server.biometrics;

import android.content.Context;
import android.os.Build;
import android.os.UserHandle;
import android.provider.Settings;

public class Utils {
    public static boolean isDebugEnabled(Context context, int targetUserId) {
        if (targetUserId == UserHandle.USER_NULL) {
            return false;
        }

        if (!(Build.IS_ENG || Build.IS_USERDEBUG)) {
            return false;
        }