273 lines
7.4 KiB
Smali
273 lines
7.4 KiB
Smali
.class public final Lcom/discord/widgets/home/WidgetHomePanelLoading;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetHomePanelLoading.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/widgets/home/WidgetHomePanelLoading$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final Companion:Lcom/discord/widgets/home/WidgetHomePanelLoading$Companion;
|
|
|
|
.field public static panelInitialized:Z
|
|
|
|
|
|
# instance fields
|
|
.field public final panelCenter:Landroid/view/View;
|
|
|
|
.field public final panelLoading:Landroid/view/View;
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
new-instance v0, Lcom/discord/widgets/home/WidgetHomePanelLoading$Companion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/home/WidgetHomePanelLoading$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->Companion:Lcom/discord/widgets/home/WidgetHomePanelLoading$Companion;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const v0, 0x7f0a0491
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelLoading:Landroid/view/View;
|
|
|
|
const v0, 0x7f0a0485
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelCenter:Landroid/view/View;
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelLoading:Landroid/view/View;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-static {}, Lcom/discord/utilities/display/DisplayUtils;->getNO_OP_WINDOW_INSETS_LISTENER()Landroidx/core/view/OnApplyWindowInsetsListener;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p1, v0}, Landroidx/core/view/ViewCompat;->setOnApplyWindowInsetsListener(Landroid/view/View;Landroidx/core/view/OnApplyWindowInsetsListener;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string p1, "view"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public static final synthetic access$setLoadingPanelVisibility(Lcom/discord/widgets/home/WidgetHomePanelLoading;ZZ)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/discord/widgets/home/WidgetHomePanelLoading;->setLoadingPanelVisibility(ZZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private final setLoadingPanelVisibility(ZZ)V
|
|
.locals 17
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
iget-object v1, v0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelCenter:Landroid/view/View;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/16 v3, 0x8
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getVisibility()I
|
|
|
|
move-result v1
|
|
|
|
if-ne v1, v3, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v1, 0x0
|
|
|
|
:goto_0
|
|
if-nez v1, :cond_1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
sput-boolean p1, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelInitialized:Z
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
iget-object v4, v0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelLoading:Landroid/view/View;
|
|
|
|
const-wide/16 v5, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x3
|
|
|
|
const/4 v9, 0x0
|
|
|
|
invoke-static/range {v4 .. v9}, Lcom/discord/utilities/view/extensions/ViewExtensions;->fadeOut$default(Landroid/view/View;JLkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
|
|
|
iget-object v10, v0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelCenter:Landroid/view/View;
|
|
|
|
const-wide/16 v11, 0x0
|
|
|
|
const/4 v13, 0x0
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/4 v15, 0x7
|
|
|
|
const/16 v16, 0x0
|
|
|
|
invoke-static/range {v10 .. v16}, Lcom/discord/utilities/view/extensions/ViewExtensions;->fadeIn$default(Landroid/view/View;JLkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
iget-object v1, v0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelLoading:Landroid/view/View;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_3
|
|
iget-object v1, v0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelCenter:Landroid/view/View;
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_4
|
|
:goto_1
|
|
sget-object v1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/stores/StoreStream$Companion;->getAnalytics()Lcom/discord/stores/StoreAnalytics;
|
|
|
|
move-result-object v1
|
|
|
|
const-class v2, Lcom/discord/widgets/home/WidgetHome;
|
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/stores/StoreAnalytics;->appUiViewed(Ljava/lang/Class;)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
iget-object v1, v0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelCenter:Landroid/view/View;
|
|
|
|
if-eqz v1, :cond_6
|
|
|
|
invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_6
|
|
iget-object v1, v0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelLoading:Landroid/view/View;
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
:cond_7
|
|
:goto_2
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final configure(Lcom/discord/app/AppFragment;)V
|
|
.locals 11
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
sget-object v1, Lcom/discord/widgets/home/WidgetHomeModel;->Companion:Lcom/discord/widgets/home/WidgetHomeModel$Companion;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/widgets/home/WidgetHomeModel$Companion;->getInitialized()Lrx/Observable;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x2
|
|
|
|
invoke-static {p1, v0, v2}, Lf/a/b/r;->s(Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;I)Lrx/Observable$c;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v1, p1}, Lrx/Observable;->k(Lrx/Observable$c;)Lrx/Observable;
|
|
|
|
move-result-object v2
|
|
|
|
const-string p1, "WidgetHomeModel\n \u2026ransformers.ui(fragment))"
|
|
|
|
invoke-static {v2, p1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-class v3, Lcom/discord/widgets/home/WidgetHomePanelLoading;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
new-instance v8, Lcom/discord/widgets/home/WidgetHomePanelLoading$configure$1;
|
|
|
|
invoke-direct {v8, p0}, Lcom/discord/widgets/home/WidgetHomePanelLoading$configure$1;-><init>(Lcom/discord/widgets/home/WidgetHomePanelLoading;)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
|
|
|
|
sget-boolean p1, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelInitialized:Z
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p0, p1, v0}, Lcom/discord/widgets/home/WidgetHomePanelLoading;->setLoadingPanelVisibility(ZZ)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "fragment"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|