apkfuckery/com.discord/smali_classes2/com/lytefast/flexinput/fragment/CameraFragment$d.smali
2020-02-20 20:33:18 +01:00

119 lines
2.6 KiB
Smali

.class public final Lcom/lytefast/flexinput/fragment/CameraFragment$d;
.super Lw/u/b/k;
.source "CameraFragment.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function0;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/lytefast/flexinput/fragment/CameraFragment;-><init>()V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lw/u/b/k;",
"Lkotlin/jvm/functions/Function0<",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/lytefast/flexinput/fragment/CameraFragment;
# direct methods
.method public constructor <init>(Lcom/lytefast/flexinput/fragment/CameraFragment;)V
.locals 0
iput-object p1, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$d;->this$0:Lcom/lytefast/flexinput/fragment/CameraFragment;
const/4 p1, 0x0
invoke-direct {p0, p1}, Lw/u/b/k;-><init>(I)V
return-void
.end method
# virtual methods
.method public bridge synthetic invoke()Ljava/lang/Object;
.locals 1
invoke-virtual {p0}, Lcom/lytefast/flexinput/fragment/CameraFragment$d;->invoke()Z
move-result v0
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
return-object v0
.end method
.method public final invoke()Z
.locals 2
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$d;->this$0:Lcom/lytefast/flexinput/fragment/CameraFragment;
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
move-result-object v0
if-eqz v0, :cond_2
const-string v1, "camera"
invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
if-eqz v0, :cond_1
check-cast v0, Landroid/hardware/camera2/CameraManager;
invoke-virtual {v0}, Landroid/hardware/camera2/CameraManager;->getCameraIdList()[Ljava/lang/String;
move-result-object v0
array-length v0, v0
const/4 v1, 0x1
if-ne v0, v1, :cond_0
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
return v1
:cond_1
new-instance v0, Lw/l;
const-string v1, "null cannot be cast to non-null type android.hardware.camera2.CameraManager"
invoke-direct {v0, v1}, Lw/l;-><init>(Ljava/lang/String;)V
throw v0
:cond_2
invoke-static {}, Lw/u/b/j;->throwNpe()V
const/4 v0, 0x0
throw v0
.end method