apkfuckery/com.discord/smali/com/lytefast/flexinput/fragment/CameraFragment$a.smali

463 lines
10 KiB
Smali

.class public final Lcom/lytefast/flexinput/fragment/CameraFragment$a;
.super Ljava/lang/Object;
.source "java-style lambda group"
# interfaces
.implements Landroid/view/View$OnClickListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/lytefast/flexinput/fragment/CameraFragment;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = null
.end annotation
# instance fields
.field public final synthetic d:I
.field public final synthetic e:Ljava/lang/Object;
# direct methods
.method public constructor <init>(ILjava/lang/Object;)V
.locals 0
iput p1, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$a;->d:I
iput-object p2, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$a;->e:Ljava/lang/Object;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final onClick(Landroid/view/View;)V
.locals 12
iget v0, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$a;->d:I
const-string v1, "cameraView"
const/4 v2, 0x0
if-eqz v0, :cond_17
const/4 v3, 0x1
if-eq v0, v3, :cond_16
const/4 p1, 0x2
const/4 v4, 0x0
if-eq v0, p1, :cond_b
const/4 p1, 0x3
if-ne v0, p1, :cond_a
iget-object p1, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$a;->e:Ljava/lang/Object;
check-cast p1, Lcom/lytefast/flexinput/fragment/CameraFragment;
iget-object v0, p1, Lcom/lytefast/flexinput/fragment/CameraFragment;->e:Lcom/otaliastudios/cameraview/CameraView;
if-eqz v0, :cond_9
invoke-virtual {v0}, Lcom/otaliastudios/cameraview/CameraView;->getCameraOptions()Lf/l/a/c;
move-result-object v0
if-eqz v0, :cond_0
invoke-virtual {v0}, Lf/l/a/c;->a()Ljava/util/Collection;
move-result-object v0
if-eqz v0, :cond_0
invoke-static {v0}, Lk0/i/f;->toList(Ljava/lang/Iterable;)Ljava/util/List;
move-result-object v0
goto :goto_0
:cond_0
sget-object v0, Lk0/i/l;->d:Lk0/i/l;
:goto_0
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v5
if-gt v5, v3, :cond_1
goto :goto_3
:cond_1
iget-object v5, p1, Lcom/lytefast/flexinput/fragment/CameraFragment;->e:Lcom/otaliastudios/cameraview/CameraView;
if-eqz v5, :cond_8
invoke-virtual {v5}, Lcom/otaliastudios/cameraview/CameraView;->getFacing()Lf/l/a/k/e;
move-result-object v5
const-string v6, "cameraView.facing"
invoke-static {v5, v6}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {v0}, Lf/h/a/f/e/n/f;->getIndices(Ljava/util/Collection;)Lkotlin/ranges/IntRange;
move-result-object v6
invoke-virtual {v6}, Lkotlin/ranges/IntProgression;->iterator()Ljava/util/Iterator;
move-result-object v6
:cond_2
move-object v7, v6
check-cast v7, Lk0/q/b;
iget-boolean v7, v7, Lk0/q/b;->e:Z
if-eqz v7, :cond_4
move-object v7, v6
check-cast v7, Lk0/i/o;
invoke-virtual {v7}, Lk0/i/o;->next()Ljava/lang/Object;
move-result-object v7
move-object v8, v7
check-cast v8, Ljava/lang/Number;
invoke-virtual {v8}, Ljava/lang/Number;->intValue()I
move-result v8
invoke-interface {v0, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v8
check-cast v8, Lf/l/a/k/e;
if-ne v5, v8, :cond_3
const/4 v8, 0x1
goto :goto_1
:cond_3
const/4 v8, 0x0
:goto_1
if-eqz v8, :cond_2
goto :goto_2
:cond_4
move-object v7, v2
:goto_2
check-cast v7, Ljava/lang/Integer;
if-eqz v7, :cond_5
invoke-virtual {v7}, Ljava/lang/Integer;->intValue()I
move-result v4
:cond_5
add-int/2addr v4, v3
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v3
rem-int/2addr v4, v3
invoke-static {v0, v4}, Lk0/i/f;->getOrNull(Ljava/util/List;I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lf/l/a/k/e;
if-eqz v0, :cond_7
invoke-virtual {p1}, Lcom/lytefast/flexinput/fragment/CameraFragment;->i()V
iget-object p1, p1, Lcom/lytefast/flexinput/fragment/CameraFragment;->e:Lcom/otaliastudios/cameraview/CameraView;
if-eqz p1, :cond_6
invoke-virtual {p1, v0}, Lcom/otaliastudios/cameraview/CameraView;->setFacing(Lf/l/a/k/e;)V
goto :goto_3
:cond_6
invoke-static {v1}, Lk0/n/c/i;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v2
:cond_7
:goto_3
return-void
:cond_8
invoke-static {v1}, Lk0/n/c/i;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v2
:cond_9
invoke-static {v1}, Lk0/n/c/i;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v2
:cond_a
throw v2
:cond_b
iget-object p1, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$a;->e:Ljava/lang/Object;
move-object v5, p1
check-cast v5, Lcom/lytefast/flexinput/fragment/CameraFragment;
iget-object p1, v5, Lcom/lytefast/flexinput/fragment/CameraFragment;->e:Lcom/otaliastudios/cameraview/CameraView;
if-eqz p1, :cond_15
invoke-virtual {p1}, Lcom/otaliastudios/cameraview/CameraView;->getCameraOptions()Lf/l/a/c;
move-result-object p1
if-eqz p1, :cond_c
invoke-virtual {p1}, Lf/l/a/c;->b()Ljava/util/Collection;
move-result-object p1
if-eqz p1, :cond_c
invoke-static {p1}, Lk0/i/f;->toList(Ljava/lang/Iterable;)Ljava/util/List;
move-result-object p1
goto :goto_4
:cond_c
sget-object p1, Lk0/i/l;->d:Lk0/i/l;
:goto_4
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
if-gt v0, v3, :cond_d
goto/16 :goto_7
:cond_d
iget-object v0, v5, Lcom/lytefast/flexinput/fragment/CameraFragment;->e:Lcom/otaliastudios/cameraview/CameraView;
if-eqz v0, :cond_14
invoke-virtual {v0}, Lcom/otaliastudios/cameraview/CameraView;->getFlash()Lf/l/a/k/f;
move-result-object v0
const-string v6, "cameraView.flash"
invoke-static {v0, v6}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p1}, Lf/h/a/f/e/n/f;->getIndices(Ljava/util/Collection;)Lkotlin/ranges/IntRange;
move-result-object v6
invoke-virtual {v6}, Lkotlin/ranges/IntProgression;->iterator()Ljava/util/Iterator;
move-result-object v6
:cond_e
move-object v7, v6
check-cast v7, Lk0/q/b;
iget-boolean v7, v7, Lk0/q/b;->e:Z
if-eqz v7, :cond_10
move-object v7, v6
check-cast v7, Lk0/i/o;
invoke-virtual {v7}, Lk0/i/o;->next()Ljava/lang/Object;
move-result-object v7
move-object v8, v7
check-cast v8, Ljava/lang/Number;
invoke-virtual {v8}, Ljava/lang/Number;->intValue()I
move-result v8
invoke-interface {p1, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v8
check-cast v8, Lf/l/a/k/f;
if-ne v0, v8, :cond_f
const/4 v8, 0x1
goto :goto_5
:cond_f
const/4 v8, 0x0
:goto_5
if-eqz v8, :cond_e
goto :goto_6
:cond_10
move-object v7, v2
:goto_6
check-cast v7, Ljava/lang/Integer;
if-eqz v7, :cond_11
invoke-virtual {v7}, Ljava/lang/Integer;->intValue()I
move-result v4
:cond_11
add-int/2addr v4, v3
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
rem-int/2addr v4, v0
invoke-static {p1, v4}, Lk0/i/f;->getOrNull(Ljava/util/List;I)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lf/l/a/k/f;
if-eqz p1, :cond_13
:try_start_0
iget-object v0, v5, Lcom/lytefast/flexinput/fragment/CameraFragment;->e:Lcom/otaliastudios/cameraview/CameraView;
if-eqz v0, :cond_12
invoke-virtual {v0, p1}, Lcom/otaliastudios/cameraview/CameraView;->setFlash(Lf/l/a/k/f;)V
invoke-virtual {v5}, Lcom/lytefast/flexinput/fragment/CameraFragment;->j()V
goto :goto_7
:cond_12
invoke-static {v1}, Lk0/n/c/i;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
throw v2
:catch_0
move-exception p1
move-object v7, p1
sget p1, Lcom/lytefast/flexinput/R$g;->camera_unknown_error:I
invoke-virtual {v5, p1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
move-result-object v6
const-string p1, "getString(R.string.camera_unknown_error)"
invoke-static {v6, p1}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v8, 0x1
const/4 v9, 0x0
const/16 v10, 0x8
const/4 v11, 0x0
invoke-static/range {v5 .. v11}, Lcom/lytefast/flexinput/fragment/CameraFragment;->l(Lcom/lytefast/flexinput/fragment/CameraFragment;Ljava/lang/String;Ljava/lang/Exception;ZLjava/lang/String;ILjava/lang/Object;)V
:cond_13
:goto_7
return-void
:cond_14
invoke-static {v1}, Lk0/n/c/i;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v2
:cond_15
invoke-static {v1}, Lk0/n/c/i;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v2
:cond_16
iget-object v0, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$a;->e:Ljava/lang/Object;
check-cast v0, Lcom/lytefast/flexinput/fragment/CameraFragment;
const-string v1, "it"
invoke-static {p1, v1}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object p1
const-string v1, "it.context"
invoke-static {p1, v1}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {v0, p1}, Lcom/lytefast/flexinput/fragment/CameraFragment;->h(Lcom/lytefast/flexinput/fragment/CameraFragment;Landroid/content/Context;)V
return-void
:cond_17
iget-object p1, p0, Lcom/lytefast/flexinput/fragment/CameraFragment$a;->e:Ljava/lang/Object;
check-cast p1, Lcom/lytefast/flexinput/fragment/CameraFragment;
iget-object p1, p1, Lcom/lytefast/flexinput/fragment/CameraFragment;->e:Lcom/otaliastudios/cameraview/CameraView;
if-eqz p1, :cond_18
invoke-virtual {p1}, Lcom/otaliastudios/cameraview/CameraView;->h()V
return-void
:cond_18
invoke-static {v1}, Lk0/n/c/i;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v2
.end method