apkfuckery/com.discord/smali_classes2/com/lytefast/flexinput/fragment/a$f.smali
2019-07-29 22:14:17 +02:00

197 lines
4.8 KiB
Smali

.class final Lcom/lytefast/flexinput/fragment/a$f;
.super Ljava/lang/Object;
.source "AddContentDialogFragment.kt"
# interfaces
.implements Landroid/view/View$OnClickListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/lytefast/flexinput/fragment/a;->onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
# instance fields
.field final synthetic aYI:Lcom/lytefast/flexinput/fragment/a;
# direct methods
.method constructor <init>(Lcom/lytefast/flexinput/fragment/a;)V
.locals 0
iput-object p1, p0, Lcom/lytefast/flexinput/fragment/a$f;->aYI:Lcom/lytefast/flexinput/fragment/a;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final onClick(Landroid/view/View;)V
.locals 6
iget-object p1, p0, Lcom/lytefast/flexinput/fragment/a$f;->aYI:Lcom/lytefast/flexinput/fragment/a;
new-instance v0, Landroid/content/Intent;
const-string v1, "android.intent.action.PICK"
invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
const-string v1, "image/*"
invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;
move-result-object v0
const/4 v1, 0x1
const-string v2, "android.intent.extra.ALLOW_MULTIPLE"
invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;
move-result-object v0
new-instance v2, Landroid/util/TypedValue;
invoke-direct {v2}, Landroid/util/TypedValue;-><init>()V
invoke-virtual {p1}, Lcom/lytefast/flexinput/fragment/a;->getDialog()Landroid/app/Dialog;
move-result-object v3
const/4 v4, 0x0
if-eqz v3, :cond_0
invoke-virtual {v3}, Landroid/app/Dialog;->getContext()Landroid/content/Context;
move-result-object v3
if-eqz v3, :cond_0
invoke-virtual {v3}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
move-result-object v3
goto :goto_0
:cond_0
move-object v3, v4
:goto_0
if-eqz v3, :cond_1
sget v5, Lcom/lytefast/flexinput/R$b;->flexInputAddContentLauncherTitle:I
invoke-virtual {v3, v5, v2, v1}, Landroid/content/res/Resources$Theme;->resolveAttribute(ILandroid/util/TypedValue;Z)Z
move-result v3
if-eqz v3, :cond_1
iget-object v4, v2, Landroid/util/TypedValue;->string:Ljava/lang/CharSequence;
:cond_1
const/4 v2, 0x0
if-eqz v4, :cond_3
invoke-static {v4}, Lkotlin/text/l;->j(Ljava/lang/CharSequence;)Z
move-result v3
if-eqz v3, :cond_2
goto :goto_1
:cond_2
const/4 v1, 0x0
:cond_3
:goto_1
if-eqz v1, :cond_4
sget v1, Lcom/lytefast/flexinput/R$g;->choose_an_application:I
invoke-virtual {p1, v1}, Lcom/lytefast/flexinput/fragment/a;->getString(I)Ljava/lang/String;
move-result-object v1
const-string v3, "getString(R.string.choose_an_application)"
invoke-static {v1, v3}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
move-object v4, v1
check-cast v4, Ljava/lang/CharSequence;
goto :goto_2
:cond_4
if-nez v4, :cond_5
invoke-static {}, Lkotlin/jvm/internal/k;->Ee()V
:cond_5
:goto_2
invoke-static {v0, v4}, Landroid/content/Intent;->createChooser(Landroid/content/Intent;Ljava/lang/CharSequence;)Landroid/content/Intent;
move-result-object v0
invoke-virtual {p1}, Lcom/lytefast/flexinput/fragment/a;->BW()Ljava/util/List;
move-result-object v1
check-cast v1, Ljava/util/Collection;
if-eqz v1, :cond_7
new-array v2, v2, [Landroid/content/Intent;
invoke-interface {v1, v2}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v1
if-eqz v1, :cond_6
check-cast v1, [Landroid/os/Parcelable;
const-string v2, "android.intent.extra.INITIAL_INTENTS"
invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;[Landroid/os/Parcelable;)Landroid/content/Intent;
move-result-object v0
sget v1, Lcom/lytefast/flexinput/fragment/a;->aYF:I
invoke-virtual {p1, v0, v1}, Lcom/lytefast/flexinput/fragment/a;->startActivityForResult(Landroid/content/Intent;I)V
return-void
:cond_6
new-instance p1, Lkotlin/r;
const-string v0, "null cannot be cast to non-null type kotlin.Array<T>"
invoke-direct {p1, v0}, Lkotlin/r;-><init>(Ljava/lang/String;)V
throw p1
:cond_7
new-instance p1, Lkotlin/r;
const-string v0, "null cannot be cast to non-null type java.util.Collection<T>"
invoke-direct {p1, v0}, Lkotlin/r;-><init>(Ljava/lang/String;)V
throw p1
.end method