132 lines
2.8 KiB
Smali
132 lines
2.8 KiB
Smali
.class final Lcom/lytefast/flexinput/fragment/CameraFragment$b;
|
|
.super Lkotlin/jvm/internal/l;
|
|
.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 = 0x18
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/jvm/internal/l;",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Ljava/lang/Boolean;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic this$0:Lcom/lytefast/flexinput/fragment/CameraFragment;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/lytefast/flexinput/fragment/CameraFragment;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$b;->this$0:Lcom/lytefast/flexinput/fragment/CameraFragment;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
invoke-direct {p0, p1}, Lkotlin/jvm/internal/l;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final synthetic invoke()Ljava/lang/Object;
|
|
.locals 4
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-gez v0, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_0
|
|
const/16 v3, 0x14
|
|
|
|
if-lt v3, v0, :cond_1
|
|
|
|
invoke-static {}, Landroid/hardware/Camera;->getNumberOfCameras()I
|
|
|
|
move-result v0
|
|
|
|
if-ne v0, v2, :cond_3
|
|
|
|
:goto_0
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
:goto_1
|
|
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$b;->this$0:Lcom/lytefast/flexinput/fragment/CameraFragment;
|
|
|
|
invoke-virtual {v0}, Lcom/lytefast/flexinput/fragment/CameraFragment;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
invoke-static {}, Lkotlin/jvm/internal/k;->Ee()V
|
|
|
|
:cond_2
|
|
const-string v3, "camera"
|
|
|
|
invoke-virtual {v0, v3}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
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
|
|
|
|
if-ne v0, v2, :cond_3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
:goto_2
|
|
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:cond_4
|
|
new-instance v0, Lkotlin/r;
|
|
|
|
const-string v1, "null cannot be cast to non-null type android.hardware.camera2.CameraManager"
|
|
|
|
invoke-direct {v0, v1}, Lkotlin/r;-><init>(Ljava/lang/String;)V
|
|
|
|
goto :goto_4
|
|
|
|
:goto_3
|
|
throw v0
|
|
|
|
:goto_4
|
|
goto :goto_3
|
|
.end method
|