.class public Le/b/a/a/a; .super Landroidx/appcompat/app/AppCompatDialogFragment; .source "AddContentDialogFragment.kt" # instance fields .field public d:Landroidx/viewpager/widget/ViewPager; .field public e:Lcom/google/android/material/tabs/TabLayout; .field public f:Lcom/google/android/material/floatingactionbutton/FloatingActionButton; .field public g:Landroid/widget/ImageView; .field public h:Lcom/lytefast/flexinput/utils/SelectionAggregator; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/lytefast/flexinput/utils/SelectionAggregator<", "Lcom/lytefast/flexinput/model/Attachment<", "Ljava/lang/Object;", ">;>;" } .end annotation .end field .field public final i:Le/b/a/a/a$c; # direct methods .method public constructor ()V .locals 1 invoke-direct {p0}, Landroidx/appcompat/app/AppCompatDialogFragment;->()V new-instance v0, Le/b/a/a/a$c; invoke-direct {v0, p0}, Le/b/a/a/a$c;->(Le/b/a/a/a;)V iput-object v0, p0, Le/b/a/a/a;->i:Le/b/a/a/a$c; return-void .end method .method public static final synthetic a(Le/b/a/a/a;)V .locals 2 iget-object v0, p0, Le/b/a/a/a;->f:Lcom/google/android/material/floatingactionbutton/FloatingActionButton; if-eqz v0, :cond_0 new-instance v1, Le/b/a/a/d; invoke-direct {v1, p0}, Le/b/a/a/d;->(Le/b/a/a/a;)V invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->post(Ljava/lang/Runnable;)Z :cond_0 return-void .end method # virtual methods .method public final c()V .locals 4 invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context; move-result-object v0 if-eqz v0, :cond_4 const-string v1, "context ?: return dismissAllowingStateLoss()" invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V sget v1, Lcom/google/android/material/R$anim;->design_bottom_sheet_slide_out:I invoke-static {v0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation; move-result-object v1 const-string v2, "animation" invoke-static {v1, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources; move-result-object v2 sget v3, Lcom/google/android/material/R$integer;->bottom_sheet_slide_duration:I invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getInteger(I)I move-result v2 int-to-long v2, v2 invoke-virtual {v1, v2, v3}, Landroid/view/animation/Animation;->setDuration(J)V const v2, 0x10a0004 invoke-virtual {v1, v0, v2}, Landroid/view/animation/Animation;->setInterpolator(Landroid/content/Context;I)V iget-object v0, p0, Le/b/a/a/a;->f:Lcom/google/android/material/floatingactionbutton/FloatingActionButton; if-eqz v0, :cond_0 invoke-virtual {v0}, Lcom/google/android/material/floatingactionbutton/FloatingActionButton;->hide()V :cond_0 iget-object v0, p0, Le/b/a/a/a;->e:Lcom/google/android/material/tabs/TabLayout; if-eqz v0, :cond_1 invoke-virtual {v0, v1}, Landroid/widget/HorizontalScrollView;->startAnimation(Landroid/view/animation/Animation;)V :cond_1 iget-object v0, p0, Le/b/a/a/a;->d:Landroidx/viewpager/widget/ViewPager; if-eqz v0, :cond_2 invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->startAnimation(Landroid/view/animation/Animation;)V :cond_2 iget-object v0, p0, Le/b/a/a/a;->g:Landroid/widget/ImageView; if-eqz v0, :cond_3 invoke-virtual {v0, v1}, Landroid/widget/ImageView;->startAnimation(Landroid/view/animation/Animation;)V :cond_3 new-instance v0, Le/b/a/a/a$b; invoke-direct {v0, p0}, Le/b/a/a/a$b;->(Le/b/a/a/a;)V invoke-virtual {v1, v0}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V return-void :cond_4 invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->dismissAllowingStateLoss()V return-void .end method .method public d()V .locals 15 .annotation build Landroid/annotation/TargetApi; value = 0x12 .end annotation new-instance v0, Landroid/content/Intent; const-string v1, "android.intent.action.PICK" invoke-direct {v0, v1}, Landroid/content/Intent;->(Ljava/lang/String;)V const-string v2, "image/*" invoke-virtual {v0, v2}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent; move-result-object v0 const-string v3, "android.intent.extra.ALLOW_MULTIPLE" const/4 v4, 0x1 invoke-virtual {v0, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; move-result-object v0 const-string v5, "Intent(Intent.ACTION_PIC\u2026TRA_ALLOW_MULTIPLE, true)" invoke-static {v0, v5}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V new-instance v5, Landroid/util/TypedValue; invoke-direct {v5}, Landroid/util/TypedValue;->()V invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->getDialog()Landroid/app/Dialog; move-result-object v6 const/4 v7, 0x0 if-eqz v6, :cond_0 invoke-virtual {v6}, Landroid/app/Dialog;->getContext()Landroid/content/Context; move-result-object v6 if-eqz v6, :cond_0 invoke-virtual {v6}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme; move-result-object v6 goto :goto_0 :cond_0 move-object v6, v7 :goto_0 if-eqz v6, :cond_1 sget v8, Lcom/lytefast/flexinput/R$b;->flexInputAddContentLauncherTitle:I invoke-virtual {v6, v8, v5, v4}, Landroid/content/res/Resources$Theme;->resolveAttribute(ILandroid/util/TypedValue;Z)Z move-result v6 if-eqz v6, :cond_1 iget-object v5, v5, Landroid/util/TypedValue;->string:Ljava/lang/CharSequence; goto :goto_1 :cond_1 move-object v5, v7 :goto_1 const/4 v6, 0x0 if-eqz v5, :cond_3 invoke-static {v5}, Lw/a0/n;->isBlank(Ljava/lang/CharSequence;)Z move-result v8 if-eqz v8, :cond_2 goto :goto_2 :cond_2 const/4 v8, 0x0 goto :goto_3 :cond_3 :goto_2 const/4 v8, 0x1 :goto_3 if-eqz v8, :cond_4 sget v5, Lcom/lytefast/flexinput/R$g;->choose_an_application:I invoke-virtual {p0, v5}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String; move-result-object v5 const-string v8, "getString(R.string.choose_an_application)" invoke-static {v5, v8}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V :cond_4 invoke-static {v0, v5}, Landroid/content/Intent;->createChooser(Landroid/content/Intent;Ljava/lang/CharSequence;)Landroid/content/Intent; move-result-object v0 invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context; move-result-object v5 if-eqz v5, :cond_b invoke-virtual {v5}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object v5 if-eqz v5, :cond_b const-string v8, "text/*" const-string v9, "video/*" filled-new-array {v8, v2, v9}, [Ljava/lang/String; move-result-object v2 new-instance v8, Landroid/content/Intent; const-string v9, "android.intent.action.GET_CONTENT" invoke-direct {v8, v9}, Landroid/content/Intent;->(Ljava/lang/String;)V const-string v10, "application/*" invoke-virtual {v8, v10}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent; move-result-object v8 const-string v10, "android.intent.extra.MIME_TYPES" invoke-virtual {v8, v10, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;[Ljava/lang/String;)Landroid/content/Intent; move-result-object v2 const-string v8, "android.intent.category.OPENABLE" invoke-virtual {v2, v8}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent; move-result-object v2 const-string v10, "android.intent.category.DEFAULT" invoke-virtual {v2, v10}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent; move-result-object v2 invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; move-result-object v2 invoke-virtual {v5, v2, v6}, Landroid/content/pm/PackageManager;->queryIntentActivities(Landroid/content/Intent;I)Ljava/util/List; move-result-object v2 const-string v5, "resolveInfos" invoke-static {v2, v5}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V new-instance v5, Ljava/util/ArrayList; invoke-interface {v2}, Ljava/util/List;->size()I move-result v11 add-int/2addr v11, v4 invoke-direct {v5, v11}, Ljava/util/ArrayList;->(I)V invoke-interface {v2}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; move-result-object v2 :goto_4 invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z move-result v11 if-eqz v11, :cond_5 invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v11 check-cast v11, Landroid/content/pm/ResolveInfo; new-instance v12, Landroid/content/ComponentName; iget-object v13, v11, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; iget-object v13, v13, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String; iget-object v14, v11, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; iget-object v14, v14, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String; invoke-direct {v12, v13, v14}, Landroid/content/ComponentName;->(Ljava/lang/String;Ljava/lang/String;)V new-instance v13, Landroid/content/Intent; invoke-direct {v13, v9}, Landroid/content/Intent;->(Ljava/lang/String;)V invoke-virtual {v13, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; move-result-object v13 invoke-virtual {v13, v10}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent; move-result-object v13 invoke-virtual {v13, v8}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent; move-result-object v13 invoke-virtual {v13, v12}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent; move-result-object v12 iget-object v11, v11, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; iget-object v11, v11, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String; invoke-virtual {v12, v11}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent; move-result-object v11 invoke-interface {v5, v11}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z goto :goto_4 :cond_5 invoke-interface {v5}, Ljava/util/Collection;->isEmpty()Z move-result v2 const-string v8, "com.google.android.apps.docs" if-eqz v2, :cond_6 goto :goto_5 :cond_6 invoke-interface {v5}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; move-result-object v2 :cond_7 invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z move-result v9 if-eqz v9, :cond_8 invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v9 check-cast v9, Landroid/content/Intent; const-string v10, "it" invoke-static {v9, v10}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-virtual {v9}, Landroid/content/Intent;->getPackage()Ljava/lang/String; move-result-object v9 invoke-static {v9, v8}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v9 if-eqz v9, :cond_7 const/4 v2, 0x1 goto :goto_6 :cond_8 :goto_5 const/4 v2, 0x0 :goto_6 if-nez v2, :cond_c invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context; move-result-object v2 if-eqz v2, :cond_a const-string v9, "context ?: return null" invoke-static {v2, v9}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-virtual {v2}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object v2 new-instance v9, Landroid/content/Intent; invoke-direct {v9, v1}, Landroid/content/Intent;->(Ljava/lang/String;)V invoke-virtual {v9, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent; move-result-object v3 invoke-virtual {v2, v3, v6}, Landroid/content/pm/PackageManager;->queryIntentActivities(Landroid/content/Intent;I)Ljava/util/List; move-result-object v2 invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object v2 :cond_9 invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z move-result v3 if-eqz v3, :cond_a invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v3 check-cast v3, Landroid/content/pm/ResolveInfo; new-instance v4, Landroid/content/ComponentName; iget-object v9, v3, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; iget-object v9, v9, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String; iget-object v10, v3, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; iget-object v10, v10, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String; invoke-direct {v4, v9, v10}, Landroid/content/ComponentName;->(Ljava/lang/String;Ljava/lang/String;)V iget-object v9, v3, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; iget-object v9, v9, Landroid/content/pm/ActivityInfo;->name:Ljava/lang/String; new-instance v10, Ljava/lang/StringBuilder; invoke-direct {v10}, Ljava/lang/StringBuilder;->()V invoke-virtual {v10, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v11, ".app.PickActivity" invoke-virtual {v10, v11}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v10}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v10 invoke-static {v9, v10}, Lw/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v9 if-eqz v9, :cond_9 new-instance v2, Landroid/content/Intent; invoke-direct {v2, v1}, Landroid/content/Intent;->(Ljava/lang/String;)V invoke-virtual {v2, v4}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent; move-result-object v1 iget-object v2, v3, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo; iget-object v2, v2, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String; invoke-virtual {v1, v2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent; move-result-object v7 :cond_a if-eqz v7, :cond_c invoke-virtual {v5, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z goto :goto_7 :cond_b sget-object v5, Lw/q/o;->d:Lw/q/o; :cond_c :goto_7 new-array v1, v6, [Landroid/content/Intent; invoke-interface {v5, v1}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object; move-result-object v1 if-eqz v1, :cond_d 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 const-string v1, "Intent.createChooser(ima\u2026llIntents.toTypedArray())" invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V const/16 v1, 0x1750 invoke-virtual {p0, v0, v1}, Landroidx/fragment/app/Fragment;->startActivityForResult(Landroid/content/Intent;I)V return-void :cond_d new-instance v0, Lw/l; const-string v1, "null cannot be cast to non-null type kotlin.Array" invoke-direct {v0, v1}, Lw/l;->(Ljava/lang/String;)V throw v0 .end method .method public onActivityResult(IILandroid/content/Intent;)V .locals 4 invoke-super {p0, p1, p2, p3}, Landroidx/fragment/app/Fragment;->onActivityResult(IILandroid/content/Intent;)V const/16 v0, 0x1750 if-ne v0, p1, :cond_8 if-nez p2, :cond_0 goto/16 :goto_4 :cond_0 const/4 p1, -0x1 const/4 v0, 0x0 if-ne p1, p2, :cond_7 if-nez p3, :cond_1 goto/16 :goto_3 :cond_1 invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context; move-result-object p1 if-eqz p1, :cond_6 invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver; move-result-object p1 if-eqz p1, :cond_6 invoke-virtual {p3}, Landroid/content/Intent;->getClipData()Landroid/content/ClipData; move-result-object p2 invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getParentFragment()Landroidx/fragment/app/Fragment; move-result-object v1 if-eqz v1, :cond_5 check-cast v1, Lcom/lytefast/flexinput/FlexInputCoordinator; if-nez p2, :cond_2 invoke-virtual {p3}, Landroid/content/Intent;->getData()Landroid/net/Uri; move-result-object p2 if-eqz p2, :cond_4 sget-object p3, Lcom/lytefast/flexinput/model/Attachment;->Companion:Lcom/lytefast/flexinput/model/Attachment$Companion; invoke-virtual {p3, p2, p1}, Lcom/lytefast/flexinput/model/Attachment$Companion;->a(Landroid/net/Uri;Landroid/content/ContentResolver;)Lcom/lytefast/flexinput/model/Attachment; move-result-object p1 invoke-interface {v1, p1}, Lcom/lytefast/flexinput/FlexInputCoordinator;->a(Lcom/lytefast/flexinput/model/Attachment;)V goto :goto_2 :cond_2 invoke-virtual {p2}, Landroid/content/ClipData;->getItemCount()I move-result p3 invoke-static {v0, p3}, Lw/x/f;->until(II)Lkotlin/ranges/IntRange; move-result-object p3 new-instance v0, Ljava/util/ArrayList; const/16 v2, 0xa invoke-static {p3, v2}, Le/k/a/c/e/p/g;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I move-result v2 invoke-direct {v0, v2}, Ljava/util/ArrayList;->(I)V invoke-interface {p3}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; move-result-object p3 :goto_0 invoke-interface {p3}, Ljava/util/Iterator;->hasNext()Z move-result v2 if-eqz v2, :cond_3 move-object v2, p3 check-cast v2, Lw/q/r; invoke-virtual {v2}, Lw/q/r;->nextInt()I move-result v2 invoke-virtual {p2, v2}, Landroid/content/ClipData;->getItemAt(I)Landroid/content/ClipData$Item; move-result-object v2 const-string v3, "clipData.getItemAt(it)" invoke-static {v2, v3}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-virtual {v2}, Landroid/content/ClipData$Item;->getUri()Landroid/net/Uri; move-result-object v2 invoke-interface {v0, v2}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z goto :goto_0 :cond_3 invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; move-result-object p2 :goto_1 invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z move-result p3 if-eqz p3, :cond_4 invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object p3 check-cast p3, Landroid/net/Uri; sget-object v0, Lcom/lytefast/flexinput/model/Attachment;->Companion:Lcom/lytefast/flexinput/model/Attachment$Companion; const-string v2, "it" invoke-static {p3, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-virtual {v0, p3, p1}, Lcom/lytefast/flexinput/model/Attachment$Companion;->a(Landroid/net/Uri;Landroid/content/ContentResolver;)Lcom/lytefast/flexinput/model/Attachment; move-result-object p3 invoke-interface {v1, p3}, Lcom/lytefast/flexinput/FlexInputCoordinator;->a(Lcom/lytefast/flexinput/model/Attachment;)V goto :goto_1 :cond_4 :goto_2 return-void :cond_5 new-instance p1, Lw/l; const-string p2, "null cannot be cast to non-null type com.lytefast.flexinput.FlexInputCoordinator" invoke-direct {p1, p2}, Lw/l;->(Ljava/lang/String;)V throw p1 :cond_6 return-void :cond_7 :goto_3 invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context; move-result-object p1 const-string p2, "Error loading files" invoke-static {p1, p2, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast; move-result-object p1 invoke-virtual {p1}, Landroid/widget/Toast;->show()V :cond_8 :goto_4 return-void .end method .method public onCreateDialog(Landroid/os/Bundle;)Landroid/app/Dialog; .locals 2 .annotation build Landroid/annotation/SuppressLint; value = { "PrivateResource" } .end annotation new-instance p1, Le/b/a/a/a$d; invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context; move-result-object v0 sget v1, Lcom/lytefast/flexinput/R$h;->FlexInput_DialogWhenLarge:I invoke-direct {p1, p0, v0, v1}, Le/b/a/a/a$d;->(Le/b/a/a/a;Landroid/content/Context;I)V const/4 v0, 0x1 invoke-virtual {p1, v0}, Landroidx/appcompat/app/AppCompatDialog;->supportRequestWindowFeature(I)Z invoke-virtual {p1}, Landroid/app/Dialog;->getWindow()Landroid/view/Window; move-result-object v0 if-eqz v0, :cond_0 sget v1, Lcom/google/android/material/R$style;->Animation_AppCompat_Dialog:I invoke-virtual {v0, v1}, Landroid/view/Window;->setWindowAnimations(I)V const v1, 0x106000d invoke-virtual {v0, v1}, Landroid/view/Window;->setBackgroundDrawableResource(I)V :cond_0 return-object p1 .end method .method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View; .locals 12 if-eqz p1, :cond_c sget p3, Lcom/lytefast/flexinput/R$f;->dialog_add_content_pager_with_fab:I const/4 v0, 0x0 invoke-virtual {p1, p3, p2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View; move-result-object p1 const/4 p2, 0x1 if-eqz p1, :cond_0 new-instance p3, Le/b/a/a/a$a; invoke-direct {p3, v0, p0}, Le/b/a/a/a$a;->(ILjava/lang/Object;)V invoke-virtual {p1, p3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V sget p3, Lcom/lytefast/flexinput/R$e;->content_pager:I invoke-virtual {p1, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View; move-result-object p3 check-cast p3, Landroidx/viewpager/widget/ViewPager; iput-object p3, p0, Le/b/a/a/a;->d:Landroidx/viewpager/widget/ViewPager; sget p3, Lcom/lytefast/flexinput/R$e;->content_tabs:I invoke-virtual {p1, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View; move-result-object p3 check-cast p3, Lcom/google/android/material/tabs/TabLayout; iput-object p3, p0, Le/b/a/a/a;->e:Lcom/google/android/material/tabs/TabLayout; sget p3, Lcom/lytefast/flexinput/R$e;->action_btn:I invoke-virtual {p1, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View; move-result-object p3 check-cast p3, Lcom/google/android/material/floatingactionbutton/FloatingActionButton; iput-object p3, p0, Le/b/a/a/a;->f:Lcom/google/android/material/floatingactionbutton/FloatingActionButton; sget p3, Lcom/lytefast/flexinput/R$e;->launch_btn:I invoke-virtual {p1, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View; move-result-object p3 check-cast p3, Landroid/widget/ImageView; iput-object p3, p0, Le/b/a/a/a;->g:Landroid/widget/ImageView; iget-object p3, p0, Le/b/a/a/a;->g:Landroid/widget/ImageView; if-eqz p3, :cond_0 new-instance v1, Le/b/a/a/a$a; invoke-direct {v1, p2, p0}, Le/b/a/a/a$a;->(ILjava/lang/Object;)V invoke-virtual {p3, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V :cond_0 invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getParentFragment()Landroidx/fragment/app/Fragment; move-result-object p3 instance-of v1, p3, Lcom/lytefast/flexinput/fragment/FlexInputFragment; if-eqz v1, :cond_b new-instance v1, Le/b/a/b/a; invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager; move-result-object v2 const-string v3, "childFragmentManager" invoke-static {v2, v3}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V move-object v3, p3 check-cast v3, Lcom/lytefast/flexinput/fragment/FlexInputFragment; invoke-virtual {v3}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->d()[Le/b/a/b/a$b; move-result-object v4 const-string v5, "flexInputFragment.contentPages" invoke-static {v4, v5}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V array-length v5, v4 invoke-static {v4, v5}, Ljava/util/Arrays;->copyOf([Ljava/lang/Object;I)[Ljava/lang/Object; move-result-object v4 check-cast v4, [Le/b/a/b/a$b; invoke-direct {v1, v2, v4}, Le/b/a/b/a;->(Landroidx/fragment/app/FragmentManager;[Le/b/a/b/a$b;)V invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context; move-result-object v2 if-eqz v2, :cond_9 iget-object v4, p0, Le/b/a/a/a;->e:Lcom/google/android/material/tabs/TabLayout; if-eqz v4, :cond_9 const-string v5, "context" invoke-static {v2, v5}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V sget v5, Lcom/lytefast/flexinput/R$c;->tab_color_selector:I invoke-static {v2, v5}, Landroidx/appcompat/content/res/AppCompatResources;->getColorStateList(Landroid/content/Context;I)Landroid/content/res/ColorStateList; move-result-object v2 invoke-virtual {v4}, Lcom/google/android/material/tabs/TabLayout;->getTabCount()I move-result v5 const/4 v6, 0x0 :goto_0 const-string v7, "iconColors" if-ge v6, v5, :cond_2 invoke-virtual {v4, v6}, Lcom/google/android/material/tabs/TabLayout;->getTabAt(I)Lcom/google/android/material/tabs/TabLayout$Tab; move-result-object v8 if-eqz v8, :cond_1 invoke-static {v2, v7}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-virtual {v8}, Lcom/google/android/material/tabs/TabLayout$Tab;->getIcon()Landroid/graphics/drawable/Drawable; move-result-object v7 if-eqz v7, :cond_1 invoke-static {v7}, Landroidx/core/graphics/drawable/DrawableCompat;->wrap(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable; move-result-object v7 invoke-static {v7, v2}, Landroidx/core/graphics/drawable/DrawableCompat;->setTintList(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;)V invoke-virtual {v8, v7}, Lcom/google/android/material/tabs/TabLayout$Tab;->setIcon(Landroid/graphics/drawable/Drawable;)Lcom/google/android/material/tabs/TabLayout$Tab; :cond_1 add-int/lit8 v6, v6, 0x1 goto :goto_0 :cond_2 iget-object v5, v1, Le/b/a/b/a;->a:[Le/b/a/b/a$b; new-instance v6, Ljava/util/ArrayList; array-length v8, v5 invoke-direct {v6, v8}, Ljava/util/ArrayList;->(I)V array-length v8, v5 :goto_1 if-ge v0, v8, :cond_4 aget-object v9, v5, v0 invoke-virtual {v4}, Lcom/google/android/material/tabs/TabLayout;->newTab()Lcom/google/android/material/tabs/TabLayout$Tab; move-result-object v10 invoke-virtual {v9}, Le/b/a/b/a$b;->getIcon()I move-result v11 invoke-virtual {v10, v11}, Lcom/google/android/material/tabs/TabLayout$Tab;->setIcon(I)Lcom/google/android/material/tabs/TabLayout$Tab; move-result-object v10 const-string v11, "tabLayout.newTab()\n .setIcon(it.icon)" invoke-static {v10, v11}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-static {v2, v7}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-virtual {v10}, Lcom/google/android/material/tabs/TabLayout$Tab;->getIcon()Landroid/graphics/drawable/Drawable; move-result-object v11 if-eqz v11, :cond_3 invoke-static {v11}, Landroidx/core/graphics/drawable/DrawableCompat;->wrap(Landroid/graphics/drawable/Drawable;)Landroid/graphics/drawable/Drawable; move-result-object v11 invoke-static {v11, v2}, Landroidx/core/graphics/drawable/DrawableCompat;->setTintList(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;)V invoke-virtual {v10, v11}, Lcom/google/android/material/tabs/TabLayout$Tab;->setIcon(Landroid/graphics/drawable/Drawable;)Lcom/google/android/material/tabs/TabLayout$Tab; :cond_3 invoke-virtual {v9}, Le/b/a/b/a$b;->getContentDesc()I move-result v9 invoke-virtual {v10, v9}, Lcom/google/android/material/tabs/TabLayout$Tab;->setContentDescription(I)Lcom/google/android/material/tabs/TabLayout$Tab; move-result-object v9 invoke-interface {v6, v9}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z add-int/lit8 v0, v0, 0x1 goto :goto_1 :cond_4 invoke-interface {v6}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; move-result-object v0 :goto_2 invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z move-result v2 if-eqz v2, :cond_5 invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v2 check-cast v2, Lcom/google/android/material/tabs/TabLayout$Tab; invoke-virtual {v4, v2}, Lcom/google/android/material/tabs/TabLayout;->addTab(Lcom/google/android/material/tabs/TabLayout$Tab;)V goto :goto_2 :cond_5 iget-object v0, p0, Le/b/a/a/a;->d:Landroidx/viewpager/widget/ViewPager; if-eqz v0, :cond_6 invoke-virtual {v0, v1}, Landroidx/viewpager/widget/ViewPager;->setAdapter(Landroidx/viewpager/widget/PagerAdapter;)V :cond_6 iget-object v0, p0, Le/b/a/a/a;->e:Lcom/google/android/material/tabs/TabLayout; if-eqz v0, :cond_7 new-instance v1, Le/b/a/a/b; invoke-direct {v1, p0}, Le/b/a/a/b;->(Le/b/a/a/a;)V invoke-virtual {v0, v1}, Lcom/google/android/material/tabs/TabLayout;->addOnTabSelectedListener(Lcom/google/android/material/tabs/TabLayout$OnTabSelectedListener;)V :cond_7 iget-object v0, p0, Le/b/a/a/a;->d:Landroidx/viewpager/widget/ViewPager; if-eqz v0, :cond_8 new-instance v1, Le/b/a/a/c; invoke-direct {v1, p0}, Le/b/a/a/c;->(Le/b/a/a/a;)V invoke-virtual {v0, v1}, Landroidx/viewpager/widget/ViewPager;->addOnPageChangeListener(Landroidx/viewpager/widget/ViewPager$OnPageChangeListener;)V :cond_8 iget-object v0, p0, Le/b/a/a/a;->e:Lcom/google/android/material/tabs/TabLayout; if-eqz v0, :cond_9 invoke-virtual {v0, p2}, Lcom/google/android/material/tabs/TabLayout;->getTabAt(I)Lcom/google/android/material/tabs/TabLayout$Tab; move-result-object p2 if-eqz p2, :cond_9 invoke-virtual {p2}, Lcom/google/android/material/tabs/TabLayout$Tab;->select()V :cond_9 iget-object p2, p0, Le/b/a/a/a;->f:Lcom/google/android/material/floatingactionbutton/FloatingActionButton; if-eqz p2, :cond_a new-instance v0, Le/b/a/a/a$e; invoke-direct {v0, p0, p3}, Le/b/a/a/a$e;->(Le/b/a/a/a;Landroidx/fragment/app/Fragment;)V invoke-virtual {p2, v0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V :cond_a invoke-virtual {v3}, Lcom/lytefast/flexinput/fragment/FlexInputFragment;->b()Lcom/lytefast/flexinput/utils/SelectionAggregator; move-result-object p2 iget-object p3, p0, Le/b/a/a/a;->i:Le/b/a/a/a$c; invoke-virtual {p2, p3}, Lcom/lytefast/flexinput/utils/SelectionAggregator;->addItemSelectionListener(Lcom/lytefast/flexinput/utils/SelectionCoordinator$ItemSelectionListener;)Lcom/lytefast/flexinput/utils/SelectionAggregator; move-result-object p2 iput-object p2, p0, Le/b/a/a/a;->h:Lcom/lytefast/flexinput/utils/SelectionAggregator; :cond_b return-object p1 :cond_c const-string p1, "inflater" invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V const/4 p1, 0x0 throw p1 .end method .method public onDestroyView()V .locals 2 iget-object v0, p0, Le/b/a/a/a;->h:Lcom/lytefast/flexinput/utils/SelectionAggregator; if-eqz v0, :cond_0 iget-object v1, p0, Le/b/a/a/a;->i:Le/b/a/a/a$c; invoke-virtual {v0, v1}, Lcom/lytefast/flexinput/utils/SelectionAggregator;->removeItemSelectionListener(Lcom/lytefast/flexinput/utils/SelectionCoordinator$ItemSelectionListener;)V :cond_0 invoke-super {p0}, Landroidx/fragment/app/DialogFragment;->onDestroyView()V return-void .end method .method public onResume()V .locals 2 invoke-super {p0}, Landroidx/fragment/app/Fragment;->onResume()V iget-object v0, p0, Le/b/a/a/a;->f:Lcom/google/android/material/floatingactionbutton/FloatingActionButton; if-eqz v0, :cond_0 new-instance v1, Le/b/a/a/a$f; invoke-direct {v1, p0}, Le/b/a/a/a$f;->(Le/b/a/a/a;)V invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->post(Ljava/lang/Runnable;)Z :cond_0 return-void .end method .method public onStart()V .locals 4 invoke-super {p0}, Landroidx/fragment/app/DialogFragment;->onStart()V invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context; move-result-object v0 if-eqz v0, :cond_2 const-string v1, "it" invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V sget v1, Lcom/google/android/material/R$anim;->design_bottom_sheet_slide_in:I invoke-static {v0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation; move-result-object v1 const-string v2, "animation" invoke-static {v1, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources; move-result-object v2 sget v3, Lcom/google/android/material/R$integer;->bottom_sheet_slide_duration:I invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getInteger(I)I move-result v2 int-to-long v2, v2 invoke-virtual {v1, v2, v3}, Landroid/view/animation/Animation;->setDuration(J)V const v2, 0x10a0004 invoke-virtual {v1, v0, v2}, Landroid/view/animation/Animation;->setInterpolator(Landroid/content/Context;I)V iget-object v0, p0, Le/b/a/a/a;->e:Lcom/google/android/material/tabs/TabLayout; if-eqz v0, :cond_0 invoke-virtual {v0, v1}, Landroid/widget/HorizontalScrollView;->startAnimation(Landroid/view/animation/Animation;)V :cond_0 iget-object v0, p0, Le/b/a/a/a;->d:Landroidx/viewpager/widget/ViewPager; if-eqz v0, :cond_1 invoke-virtual {v0, v1}, Landroid/view/ViewGroup;->startAnimation(Landroid/view/animation/Animation;)V :cond_1 iget-object v0, p0, Le/b/a/a/a;->g:Landroid/widget/ImageView; if-eqz v0, :cond_2 invoke-virtual {v0, v1}, Landroid/widget/ImageView;->startAnimation(Landroid/view/animation/Animation;)V :cond_2 return-void .end method .method public show(Landroidx/fragment/app/FragmentTransaction;Ljava/lang/String;)I .locals 2 .annotation build Landroid/annotation/SuppressLint; value = { "PrivateResource" } .end annotation if-eqz p1, :cond_0 sget v0, Lcom/google/android/material/R$anim;->abc_grow_fade_in_from_bottom:I sget v1, Lcom/google/android/material/R$anim;->abc_shrink_fade_out_from_bottom:I invoke-virtual {p1, v0, v1}, Landroidx/fragment/app/FragmentTransaction;->setCustomAnimations(II)Landroidx/fragment/app/FragmentTransaction; invoke-super {p0, p1, p2}, Landroidx/fragment/app/DialogFragment;->show(Landroidx/fragment/app/FragmentTransaction;Ljava/lang/String;)I move-result p1 return p1 :cond_0 const-string p1, "transaction" invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V const/4 p1, 0x0 throw p1 .end method