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

124 lines
2.7 KiB
Smali

.class public final Lcom/lytefast/flexinput/fragment/CameraFragment$e;
.super Lw/u/b/k;
.source "CameraFragment.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function2;
# 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/Function2<",
"Landroid/view/View;",
"Ljava/lang/Integer;",
"Lkotlin/Unit;",
">;"
}
.end annotation
# static fields
.field public static final d:Lcom/lytefast/flexinput/fragment/CameraFragment$e;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Lcom/lytefast/flexinput/fragment/CameraFragment$e;
invoke-direct {v0}, Lcom/lytefast/flexinput/fragment/CameraFragment$e;-><init>()V
sput-object v0, Lcom/lytefast/flexinput/fragment/CameraFragment$e;->d:Lcom/lytefast/flexinput/fragment/CameraFragment$e;
return-void
.end method
.method public constructor <init>()V
.locals 1
const/4 v0, 0x2
invoke-direct {p0, v0}, Lw/u/b/k;-><init>(I)V
return-void
.end method
# virtual methods
.method public final a(Landroid/view/View;I)V
.locals 1
if-eqz p1, :cond_2
if-eqz p2, :cond_1
const/4 v0, 0x1
if-eq p2, v0, :cond_0
sget p2, Lcom/lytefast/flexinput/R$g;->flash_auto:I
goto :goto_0
:cond_0
sget p2, Lcom/lytefast/flexinput/R$g;->flash_on:I
goto :goto_0
:cond_1
sget p2, Lcom/lytefast/flexinput/R$g;->flash_off:I
:goto_0
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object p1
const/4 v0, 0x0
invoke-static {p1, p2, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;
move-result-object p1
invoke-virtual {p1}, Landroid/widget/Toast;->show()V
return-void
:cond_2
const-string p1, "flashBtn"
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p1, Landroid/view/View;
check-cast p2, Ljava/lang/Number;
invoke-virtual {p2}, Ljava/lang/Number;->intValue()I
move-result p2
invoke-virtual {p0, p1, p2}, Lcom/lytefast/flexinput/fragment/CameraFragment$e;->a(Landroid/view/View;I)V
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object p1
.end method