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

This commit is contained in:
Kevin Chyn
2019-06-12 20:23:10 +00:00
committed by Android (Google) Code Review

View File

@@ -18,10 +18,15 @@ package com.android.server.biometrics;
import android.content.Context; import android.content.Context;
import android.os.Build; import android.os.Build;
import android.os.UserHandle;
import android.provider.Settings; import android.provider.Settings;
public class Utils { public class Utils {
public static boolean isDebugEnabled(Context context, int targetUserId) { public static boolean isDebugEnabled(Context context, int targetUserId) {
if (targetUserId == UserHandle.USER_NULL) {
return false;
}
if (!(Build.IS_ENG || Build.IS_USERDEBUG)) { if (!(Build.IS_ENG || Build.IS_USERDEBUG)) {
return false; return false;
} }