apkfuckery/com.discord/smali/e/a/a/p.smali
2020-04-17 18:36:30 +02:00

478 lines
12 KiB
Smali

.class public final Le/a/a/p;
.super Lcom/discord/app/AppDialog;
.source "WidgetUrgentMessageDialog.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Le/a/a/p$a;
}
.end annotation
# static fields
.field public static final synthetic h:[Lkotlin/reflect/KProperty;
.field public static final i:Le/a/a/p$a;
# instance fields
.field public final d:Lkotlin/properties/ReadOnlyProperty;
.field public final e:Lkotlin/properties/ReadOnlyProperty;
.field public final f:Lkotlin/properties/ReadOnlyProperty;
.field public g:Le/a/a/q;
# direct methods
.method public static constructor <clinit>()V
.locals 6
const/4 v0, 0x3
new-array v0, v0, [Lkotlin/reflect/KProperty;
new-instance v1, Ly/u/b/u;
const-class v2, Le/a/a/p;
invoke-static {v2}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
move-result-object v2
const-string v3, "dialogHeader"
const-string v4, "getDialogHeader()Landroid/widget/TextView;"
invoke-direct {v1, v2, v3, v4}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
sget-object v2, Ly/u/b/w;->a:Ly/u/b/x;
invoke-virtual {v2, v1}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
const/4 v2, 0x0
aput-object v1, v0, v2
const/4 v1, 0x1
new-instance v2, Ly/u/b/u;
const-class v3, Le/a/a/p;
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
move-result-object v3
const-string v4, "dialogText"
const-string v5, "getDialogText()Landroid/widget/TextView;"
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
aput-object v2, v0, v1
const/4 v1, 0x2
new-instance v2, Ly/u/b/u;
const-class v3, Le/a/a/p;
invoke-static {v3}, Ly/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/y/b;
move-result-object v3
const-string v4, "buttonConfirm"
const-string v5, "getButtonConfirm()Lcom/discord/views/LoadingButton;"
invoke-direct {v2, v3, v4, v5}, Ly/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
sget-object v3, Ly/u/b/w;->a:Ly/u/b/x;
invoke-virtual {v3, v2}, Ly/u/b/x;->property1(Ly/u/b/t;)Ly/y/d;
aput-object v2, v0, v1
sput-object v0, Le/a/a/p;->h:[Lkotlin/reflect/KProperty;
new-instance v0, Le/a/a/p$a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Le/a/a/p$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Le/a/a/p;->i:Le/a/a/p$a;
return-void
.end method
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Lcom/discord/app/AppDialog;-><init>()V
const v0, 0x7f0a0981
invoke-static {p0, v0}, Ly/z/l;->a(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object v0
iput-object v0, p0, Le/a/a/p;->d:Lkotlin/properties/ReadOnlyProperty;
const v0, 0x7f0a0982
invoke-static {p0, v0}, Ly/z/l;->a(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object v0
iput-object v0, p0, Le/a/a/p;->e:Lkotlin/properties/ReadOnlyProperty;
const v0, 0x7f0a0980
invoke-static {p0, v0}, Ly/z/l;->a(Landroidx/fragment/app/DialogFragment;I)Lkotlin/properties/ReadOnlyProperty;
move-result-object v0
iput-object v0, p0, Le/a/a/p;->f:Lkotlin/properties/ReadOnlyProperty;
return-void
.end method
.method public static final synthetic a(Le/a/a/p;Le/a/a/q$b;)V
.locals 0
invoke-virtual {p0, p1}, Le/a/a/p;->a(Le/a/a/q$b;)V
return-void
.end method
.method public static final synthetic a(Le/a/a/p;Le/a/a/q$e;)V
.locals 0
invoke-virtual {p0, p1}, Le/a/a/p;->a(Le/a/a/q$e;)V
return-void
.end method
# virtual methods
.method public final a(Le/a/a/q$b;)V
.locals 4
sget-object v0, Le/a/a/q$b$a;->a:Le/a/a/q$b$a;
invoke-static {p1, v0}, Ly/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_0
invoke-virtual {p0}, Lcom/discord/app/AppDialog;->dismiss()V
goto :goto_0
:cond_0
sget-object v0, Le/a/a/q$b$b;->a:Le/a/a/q$b$b;
invoke-static {p1, v0}, Ly/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_1
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
move-result-object p1
const v0, 0x7f120b76
const/4 v1, 0x0
const/4 v2, 0x0
const/16 v3, 0xc
invoke-static {p1, v0, v1, v2, v3}, Le/a/b/j;->a(Landroid/content/Context;IILcom/discord/utilities/view/ToastManager;I)V
:goto_0
return-void
:cond_1
new-instance p1, Ly/g;
invoke-direct {p1}, Ly/g;-><init>()V
throw p1
.end method
.method public final a(Le/a/a/q$e;)V
.locals 3
instance-of v0, p1, Le/a/a/q$e$a;
if-nez v0, :cond_0
return-void
:cond_0
iget-object v0, p0, Le/a/a/p;->d:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Le/a/a/p;->h:[Lkotlin/reflect/KProperty;
const/4 v2, 0x0
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
const v1, 0x7f121363
invoke-virtual {p0, v1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
iget-object v0, p0, Le/a/a/p;->e:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Le/a/a/p;->h:[Lkotlin/reflect/KProperty;
const/4 v2, 0x1
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/widget/TextView;
const v1, 0x7f121362
invoke-virtual {p0, v1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
invoke-virtual {p0}, Le/a/a/p;->getButtonConfirm()Lcom/discord/views/LoadingButton;
move-result-object v0
const v1, 0x7f120ea1
invoke-virtual {p0, v1}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/discord/views/LoadingButton;->setText(Ljava/lang/String;)V
invoke-virtual {p0}, Le/a/a/p;->getButtonConfirm()Lcom/discord/views/LoadingButton;
move-result-object v0
check-cast p1, Le/a/a/q$e$a;
iget-boolean p1, p1, Le/a/a/q$e$a;->b:Z
invoke-virtual {v0, p1}, Lcom/discord/views/LoadingButton;->setIsLoading(Z)V
invoke-virtual {p0}, Le/a/a/p;->getButtonConfirm()Lcom/discord/views/LoadingButton;
move-result-object p1
new-instance v0, Le/a/a/p$b;
invoke-direct {v0, p0}, Le/a/a/p$b;-><init>(Le/a/a/p;)V
invoke-virtual {p1, v0}, Landroid/widget/FrameLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V
return-void
.end method
.method public final getButtonConfirm()Lcom/discord/views/LoadingButton;
.locals 3
iget-object v0, p0, Le/a/a/p;->f:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Le/a/a/p;->h:[Lkotlin/reflect/KProperty;
const/4 v2, 0x2
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/discord/views/LoadingButton;
return-object v0
.end method
.method public getContentViewResId()I
.locals 1
const v0, 0x7f0d0258
return v0
.end method
.method public onCreate(Landroid/os/Bundle;)V
.locals 1
invoke-super {p0, p1}, Landroidx/fragment/app/DialogFragment;->onCreate(Landroid/os/Bundle;)V
const/4 p1, 0x0
invoke-virtual {p0, p1}, Landroidx/fragment/app/DialogFragment;->setCancelable(Z)V
new-instance p1, Landroidx/lifecycle/ViewModelProvider;
new-instance v0, Le/a/a/q$c;
invoke-direct {v0}, Le/a/a/q$c;-><init>()V
invoke-direct {p1, p0, v0}, Landroidx/lifecycle/ViewModelProvider;-><init>(Landroidx/lifecycle/ViewModelStoreOwner;Landroidx/lifecycle/ViewModelProvider$Factory;)V
const-class v0, Le/a/a/q;
invoke-virtual {p1, v0}, Landroidx/lifecycle/ViewModelProvider;->get(Ljava/lang/Class;)Landroidx/lifecycle/ViewModel;
move-result-object p1
const-string v0, "ViewModelProvider(\n \u2026logViewModel::class.java)"
invoke-static {p1, v0}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
check-cast p1, Le/a/a/q;
iput-object p1, p0, Le/a/a/p;->g:Le/a/a/q;
return-void
.end method
.method public onDestroy()V
.locals 2
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getNotices()Lcom/discord/stores/StoreNotices;
move-result-object v0
const-string v1, "URGENT_MESSAGE_DIALOG"
invoke-virtual {v0, v1}, Lcom/discord/stores/StoreNotices;->markDialogSeen(Ljava/lang/String;)V
invoke-super {p0}, Landroidx/fragment/app/Fragment;->onDestroy()V
return-void
.end method
.method public onViewBound(Landroid/view/View;)V
.locals 11
const/4 v0, 0x0
if-eqz p1, :cond_2
invoke-super {p0, p1}, Lcom/discord/app/AppDialog;->onViewBound(Landroid/view/View;)V
iget-object p1, p0, Le/a/a/p;->g:Le/a/a/q;
const-string v1, "viewModel"
if-eqz p1, :cond_1
invoke-virtual {p1}, Le/a/b/b0;->observeViewState()Lrx/Observable;
move-result-object p1
invoke-static {p1, p0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->bindToComponentLifecycle(Lrx/Observable;Lcom/discord/app/AppComponent;)Lrx/Observable;
move-result-object v2
const-class v3, Le/a/a/p;
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
new-instance v8, Le/a/a/p$c;
invoke-direct {v8, p0}, Le/a/a/p$c;-><init>(Le/a/a/p;)V
const/16 v9, 0x1e
const/4 v10, 0x0
invoke-static/range {v2 .. v10}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
iget-object p1, p0, Le/a/a/p;->g:Le/a/a/q;
if-eqz p1, :cond_0
invoke-virtual {p1}, Le/a/a/q;->observeEvents()Lrx/Observable;
move-result-object p1
invoke-static {p1, p0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->bindToComponentLifecycle(Lrx/Observable;Lcom/discord/app/AppComponent;)Lrx/Observable;
move-result-object v0
const-class v1, Le/a/a/p;
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
new-instance v6, Le/a/a/p$d;
invoke-direct {v6, p0}, Le/a/a/p$d;-><init>(Le/a/a/p;)V
const/16 v7, 0x1e
const/4 v8, 0x0
invoke-static/range {v0 .. v8}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
return-void
:cond_0
invoke-static {v1}, Ly/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v0
:cond_1
invoke-static {v1}, Ly/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
throw v0
:cond_2
const-string p1, "view"
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
throw v0
.end method