2020-07-08 16:44:49 +00:00
|
|
|
.class public final Lcom/discord/widgets/home/WidgetHomePanelLoading;
|
2020-05-17 12:40:10 +00:00
|
|
|
.super Ljava/lang/Object;
|
2020-07-08 16:44:49 +00:00
|
|
|
.source "WidgetHomePanelLoading.kt"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
2020-07-08 16:44:49 +00:00
|
|
|
Lcom/discord/widgets/home/WidgetHomePanelLoading$Companion;
|
2020-05-17 12:40:10 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2020-07-08 16:44:49 +00:00
|
|
|
.field public static final Companion:Lcom/discord/widgets/home/WidgetHomePanelLoading$Companion;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
.field public static panelInitialized:Z
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public final panelCenter:Landroid/view/View;
|
|
|
|
|
|
|
|
.field public final panelLoading:Landroid/view/View;
|
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
.field public final panelLoadingLogo:Landroid/view/View;
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 2
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
new-instance v0, Lcom/discord/widgets/home/WidgetHomePanelLoading$Companion;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/home/WidgetHomePanelLoading$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
sput-object v0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->Companion:Lcom/discord/widgets/home/WidgetHomePanelLoading$Companion;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Landroid/view/View;)V
|
2020-08-13 01:07:25 +00:00
|
|
|
.locals 2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
if-eqz p1, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2020-08-10 21:02:22 +00:00
|
|
|
const v0, 0x7f0a04ce
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
const-string/jumbo v1, "view.findViewById(R.id.home_panel_loading)"
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iput-object v0, p0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelLoading:Landroid/view/View;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
const v0, 0x7f0a04cf
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
move-result-object v0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
const-string/jumbo v1, "view.findViewById(R.id.home_panel_loading_logo)"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
invoke-static {v0, v1}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
iput-object v0, p0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelLoadingLogo:Landroid/view/View;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
const v0, 0x7f0a04c2
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string/jumbo v0, "view.findViewById(R.id.home_panel_center)"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelCenter:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/home/WidgetHomePanelLoading;->centerLogoRelativeToLoadingScreen()V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
:cond_0
|
2020-07-23 01:06:17 +00:00
|
|
|
const-string/jumbo p1, "view"
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
.end method
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
.method public static final synthetic access$setLoadingPanelVisibility(Lcom/discord/widgets/home/WidgetHomePanelLoading;ZZ)V
|
2020-05-17 12:40:10 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {p0, p1, p2}, Lcom/discord/widgets/home/WidgetHomePanelLoading;->setLoadingPanelVisibility(ZZ)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
.method private final centerLogoRelativeToLoadingScreen()V
|
|
|
|
.locals 5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelLoadingLogo:Landroid/view/View;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/widget/FrameLayout$LayoutParams;
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelLoadingLogo:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "panelLoadingLogo.resources"
|
|
|
|
|
|
|
|
invoke-static {v1, v2}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v1}, Lcom/discord/utilities/display/DisplayUtils;->getStatusBarHeight(Landroid/content/res/Resources;)I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
int-to-float v1, v1
|
|
|
|
|
|
|
|
const/high16 v2, -0x40000000 # -2.0f
|
|
|
|
|
|
|
|
div-float/2addr v1, v2
|
|
|
|
|
|
|
|
invoke-static {v1}, Lf/n/a/k/a;->roundToInt(F)I
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
move-result v1
|
|
|
|
|
|
|
|
iget v2, v0, Landroid/view/ViewGroup$MarginLayoutParams;->leftMargin:I
|
|
|
|
|
|
|
|
iget v3, v0, Landroid/view/ViewGroup$MarginLayoutParams;->rightMargin:I
|
|
|
|
|
|
|
|
iget v4, v0, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2, v1, v3, v4}, Landroid/view/ViewGroup$MarginLayoutParams;->setMargins(IIII)V
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelLoadingLogo:Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-virtual {v1, v0}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
new-instance v0, Lkotlin/TypeCastException;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
const-string v1, "null cannot be cast to non-null type android.widget.FrameLayout.LayoutParams"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final setLoadingPanelVisibility(ZZ)V
|
|
|
|
.locals 16
|
|
|
|
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
iget-object v1, v0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelLoading:Landroid/view/View;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getVisibility()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-nez v1, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
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
|
2020-07-08 16:44:49 +00:00
|
|
|
sput-boolean p1, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelInitialized:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
const/16 v1, 0x8
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
iget-object v3, v0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelLoading:Landroid/view/View;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
const-wide/16 v4, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
const/4 v6, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
const/4 v7, 0x3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
const/4 v8, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
invoke-static/range {v3 .. v8}, Lcom/discord/utilities/view/extensions/ViewExtensions;->fadeOut$default(Landroid/view/View;JLkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
iget-object v9, v0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelCenter:Landroid/view/View;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
const-wide/16 v10, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
const/4 v12, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
const/4 v13, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
const/4 v14, 0x7
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
const/4 v15, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
invoke-static/range {v9 .. v15}, Lcom/discord/utilities/view/extensions/ViewExtensions;->fadeIn$default(Landroid/view/View;JLkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_2
|
2020-08-13 01:07:25 +00:00
|
|
|
iget-object v3, v0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelLoading:Landroid/view/View;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
invoke-virtual {v3, v1}, Landroid/view/View;->setVisibility(I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v1, v0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelCenter:Landroid/view/View;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
: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
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
const-class v2, Lcom/discord/widgets/home/WidgetHome;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/stores/StoreAnalytics;->appUiViewed(Ljava/lang/Class;)V
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
:cond_3
|
|
|
|
iget-object v3, v0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelCenter:Landroid/view/View;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
invoke-virtual {v3, v1}, Landroid/view/View;->setVisibility(I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
iget-object v1, v0, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelLoading:Landroid/view/View;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1, v2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final configure(Lcom/discord/app/AppFragment;)V
|
2020-08-13 01:07:25 +00:00
|
|
|
.locals 12
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
sget-object v1, Lcom/discord/widgets/home/WidgetHomeModel;->Companion:Lcom/discord/widgets/home/WidgetHomeModel$Companion;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-virtual {v1}, Lcom/discord/widgets/home/WidgetHomeModel$Companion;->getInitialized()Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
invoke-static {v1, p1, v0, v2, v0}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui$default(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;ILjava/lang/Object;)Lrx/Observable;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
move-result-object v3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
const-class v4, Lcom/discord/widgets/home/WidgetHomePanelLoading;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
new-instance v9, Lcom/discord/widgets/home/WidgetHomePanelLoading$configure$1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
invoke-direct {v9, p0}, Lcom/discord/widgets/home/WidgetHomePanelLoading$configure$1;-><init>(Lcom/discord/widgets/home/WidgetHomePanelLoading;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
const/16 v10, 0x1e
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
const/4 v11, 0x0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-08-13 01:07:25 +00:00
|
|
|
invoke-static/range {v3 .. v11}, 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
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
sget-boolean p1, Lcom/discord/widgets/home/WidgetHomePanelLoading;->panelInitialized:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2020-07-08 16:44:49 +00:00
|
|
|
invoke-direct {p0, p1, v0}, Lcom/discord/widgets/home/WidgetHomePanelLoading;->setLoadingPanelVisibility(ZZ)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "fragment"
|
|
|
|
|
2020-07-25 00:57:58 +00:00
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|