47 lines
980 B
Smali
47 lines
980 B
Smali
|
.class public Landroidx/core/os/UserManagerCompat;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "UserManagerCompat.java"
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static isUserUnlocked(Landroid/content/Context;)Z
|
||
|
.locals 2
|
||
|
.param p0 # Landroid/content/Context;
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
||
|
|
||
|
const/16 v1, 0x18
|
||
|
|
||
|
if-lt v0, v1, :cond_0
|
||
|
|
||
|
const-class v0, Landroid/os/UserManager;
|
||
|
|
||
|
invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/Class;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
check-cast p0, Landroid/os/UserManager;
|
||
|
|
||
|
invoke-virtual {p0}, Landroid/os/UserManager;->isUserUnlocked()Z
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
return p0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 p0, 0x1
|
||
|
|
||
|
return p0
|
||
|
.end method
|