2020-07-14 22:43:59 +00:00
|
|
|
.class public final Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet;
|
|
|
|
.super Lcom/discord/app/AppBottomSheet;
|
|
|
|
.source "WidgetGifPickerSheet.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet$Companion;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final Companion:Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet$Companion;
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public container:Landroid/view/View;
|
|
|
|
|
|
|
|
.field public gifPickerFragment:Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSearch;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet$Companion;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet;->Companion:Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet$Companion;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppBottomSheet;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
# virtual methods
|
|
|
|
.method public final getContainer()Landroid/view/View;
|
|
|
|
.locals 1
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet;->container:Landroid/view/View;
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
if-eqz v0, :cond_0
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
return-object v0
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
:cond_0
|
|
|
|
const-string v0, "container"
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {v0}, Li0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const/4 v0, 0x0
|
2020-07-20 19:00:44 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
throw v0
|
2020-07-20 19:00:44 +00:00
|
|
|
.end method
|
|
|
|
|
2020-07-14 22:43:59 +00:00
|
|
|
.method public getContentViewResId()I
|
|
|
|
.locals 1
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const v0, 0x7f0d01c5
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onCancel(Landroid/content/DialogInterface;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
if-eqz p1, :cond_1
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
invoke-super {p0, p1}, Landroidx/fragment/app/DialogFragment;->onCancel(Landroid/content/DialogInterface;)V
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet;->gifPickerFragment:Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSearch;
|
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSearch;->clearSearchBar()V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-20 19:00:44 +00:00
|
|
|
return-void
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
:cond_0
|
2020-07-14 22:43:59 +00:00
|
|
|
const-string p1, "gifPickerFragment"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
:cond_1
|
2020-07-14 22:43:59 +00:00
|
|
|
const-string p1, "dialog"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onCreateDialog(Landroid/os/Bundle;)Landroid/app/Dialog;
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppBottomSheet;->onCreateDialog(Landroid/os/Bundle;)Landroid/app/Dialog;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
const/16 v1, 0x10
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/Window;->setSoftInputMode(I)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v0, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet$onCreateDialog$1;
|
|
|
|
|
|
|
|
invoke-direct {v0, p1}, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet$onCreateDialog$1;-><init>(Landroid/app/Dialog;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/app/Dialog;->setOnShowListener(Landroid/content/DialogInterface$OnShowListener;)V
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
|
|
|
|
invoke-super {p0, p1, p2}, Lcom/discord/app/AppBottomSheet;->onViewCreated(Landroid/view/View;Landroid/os/Bundle;)V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet;->container:Landroid/view/View;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
|
|
|
|
invoke-static {p1}, Landroidx/core/view/ViewCompat;->isLaidOut(Landroid/view/View;)Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->isLayoutRequested()Z
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet;->getContainer()Landroid/view/View;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getResources()Landroid/content/res/Resources;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
const-string v1, "resources"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p2, v1}, Li0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
iget p2, p2, Landroid/util/DisplayMetrics;->heightPixels:I
|
|
|
|
|
|
|
|
int-to-double v1, p2
|
|
|
|
|
|
|
|
const-wide v3, 0x3feccccccccccccdL # 0.9
|
|
|
|
|
|
|
|
mul-double v1, v1, v3
|
|
|
|
|
|
|
|
double-to-int p2, v1
|
|
|
|
|
|
|
|
iput p2, p1, Landroid/view/ViewGroup$LayoutParams;->height:I
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance p2, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet$onViewCreated$$inlined$doOnLayout$1;
|
|
|
|
|
|
|
|
invoke-direct {p2, p0}, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet$onViewCreated$$inlined$doOnLayout$1;-><init>(Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Landroid/view/View;->addOnLayoutChangeListener(Landroid/view/View$OnLayoutChangeListener;)V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getChildFragmentManager()Landroidx/fragment/app/FragmentManager;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "WidgetGifPickerSearchTag"
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/fragment/app/FragmentManager;->findFragmentByTag(Ljava/lang/String;)Landroidx/fragment/app/Fragment;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
instance-of p2, p1, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSearch;
|
|
|
|
|
|
|
|
if-eqz p2, :cond_3
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSearch;
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet;->gifPickerFragment:Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSearch;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
|
|
|
|
new-instance p2, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet$onViewCreated$2;
|
|
|
|
|
|
|
|
invoke-direct {p2, p0}, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet$onViewCreated$2;-><init>(Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSearch;->setOnGifSelected(Lkotlin/jvm/functions/Function0;)V
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const-string p1, "gifPickerFragment"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
:goto_1
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const-string p1, "container"
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_5
|
2020-07-22 00:04:40 +00:00
|
|
|
const-string p1, "view"
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
.method public final setContainer(Landroid/view/View;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/chat/input/gifpicker/WidgetGifPickerSheet;->container:Landroid/view/View;
|
2020-07-14 22:43:59 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
:cond_0
|
|
|
|
const-string p1, "<set-?>"
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
invoke-static {p1}, Li0/n/c/h;->c(Ljava/lang/String;)V
|
2020-07-14 22:43:59 +00:00
|
|
|
|
2020-07-22 00:04:40 +00:00
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
2020-07-14 22:43:59 +00:00
|
|
|
.end method
|