mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-12-03 03:00:23 +01:00
30 lines
1 KiB
Java
30 lines
1 KiB
Java
package androidx.biometric;
|
|
|
|
import android.content.Context;
|
|
import android.content.pm.PackageManager;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.RequiresApi;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes.dex */
|
|
class PackageUtils {
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@RequiresApi(23)
|
|
public static class Api23Impl {
|
|
private Api23Impl() {
|
|
}
|
|
|
|
public static boolean hasSystemFeatureFingerprint(@NonNull PackageManager packageManager) {
|
|
return packageManager.hasSystemFeature("android.hardware.fingerprint");
|
|
}
|
|
}
|
|
|
|
private PackageUtils() {
|
|
}
|
|
|
|
public static boolean hasSystemFeatureFingerprint(@Nullable Context context) {
|
|
return (context == null || context.getPackageManager() == null || !Api23Impl.hasSystemFeatureFingerprint(context.getPackageManager())) ? false : true;
|
|
}
|
|
}
|