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