2019-07-24 11:27:29 +00:00
|
|
|
.class public final Lcom/discord/views/ActiveSubscriptionView;
|
|
|
|
.super Landroidx/cardview/widget/CardView;
|
|
|
|
.source "ActiveSubscriptionView.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/views/ActiveSubscriptionView$DropdownItem;,
|
|
|
|
Lcom/discord/views/ActiveSubscriptionView$HeaderImage;,
|
|
|
|
Lcom/discord/views/ActiveSubscriptionView$a;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-07-29 20:14:17 +00:00
|
|
|
.field private final headerTv:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
.field private final zA:Landroid/widget/Button;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
.field private final zB:Landroid/widget/ProgressBar;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
.field private final zC:Landroid/widget/Button;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
.field private final zD:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
.field private final zE:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
.field private final zu:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
.field private final zv:Landroid/widget/Spinner;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
.field private final zw:Landroid/widget/ImageView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
.field private final zx:Landroid/widget/ImageView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
.field private final zy:Landroid/widget/ImageView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
.field private final zz:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v4, 0x6
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
move-object v1, p1
|
|
|
|
|
|
|
|
invoke-direct/range {v0 .. v5}, Lcom/discord/views/ActiveSubscriptionView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
const/4 v4, 0x4
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
move-object v0, p0
|
|
|
|
|
|
|
|
move-object v1, p1
|
|
|
|
|
|
|
|
move-object v2, p2
|
|
|
|
|
|
|
|
invoke-direct/range {v0 .. v5}, Lcom/discord/views/ActiveSubscriptionView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "context"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Landroidx/cardview/widget/CardView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
|
|
|
|
move-object p2, p0
|
|
|
|
|
|
|
|
check-cast p2, Landroid/view/ViewGroup;
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
const p3, 0x7f0d006b
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {p1, p3, p2}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
const p1, 0x7f0a002d
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/views/ActiveSubscriptionView;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "findViewById(R.id.active\u2026bscription_spinner_title)"
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zu:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
const p1, 0x7f0a002c
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/views/ActiveSubscriptionView;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "findViewById(R.id.active_subscription_spinner)"
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Landroid/widget/Spinner;
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zv:Landroid/widget/Spinner;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
const p1, 0x7f0a0029
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/views/ActiveSubscriptionView;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "findViewById(R.id.active_subscription_header_text)"
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->headerTv:Landroid/widget/TextView;
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
const p1, 0x7f0a0026
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/views/ActiveSubscriptionView;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "findViewById(R.id.active\u2026iption_header_background)"
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Landroid/widget/ImageView;
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zw:Landroid/widget/ImageView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
const p1, 0x7f0a0027
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/views/ActiveSubscriptionView;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "findViewById(R.id.active_subscription_header_icon)"
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Landroid/widget/ImageView;
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zx:Landroid/widget/ImageView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
const p1, 0x7f0a0028
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/views/ActiveSubscriptionView;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "findViewById(R.id.active_subscription_header_logo)"
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Landroid/widget/ImageView;
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zy:Landroid/widget/ImageView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
const p1, 0x7f0a0023
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/views/ActiveSubscriptionView;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "findViewById(R.id.active\u2026cription_apple_indicator)"
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zz:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
const p1, 0x7f0a002e
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/views/ActiveSubscriptionView;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "findViewById(R.id.active_subscription_top_button)"
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Landroid/widget/Button;
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zA:Landroid/widget/Button;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
const p1, 0x7f0a002b
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/views/ActiveSubscriptionView;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "findViewById(R.id.active_subscription_progress)"
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Landroid/widget/ProgressBar;
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zB:Landroid/widget/ProgressBar;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
const p1, 0x7f0a002f
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/views/ActiveSubscriptionView;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "findViewById(R.id.active\u2026scriptions_bottom_button)"
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Landroid/widget/Button;
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zC:Landroid/widget/Button;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
const p1, 0x7f0a0025
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/views/ActiveSubscriptionView;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "findViewById(R.id.active_subscription_footer_text)"
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zD:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
const p1, 0x7f0a0024
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/views/ActiveSubscriptionView;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "findViewById(R.id.active_subscription_error_text)"
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iput-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zE:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public synthetic constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
and-int/lit8 p5, p4, 0x2
|
|
|
|
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
|
|
|
|
const/4 p2, 0x0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
and-int/lit8 p4, p4, 0x4
|
|
|
|
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
|
|
|
|
const/4 p3, 0x0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/discord/views/ActiveSubscriptionView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static synthetic a(Lcom/discord/views/ActiveSubscriptionView;ILcom/discord/views/ActiveSubscriptionView$HeaderImage;ILjava/lang/CharSequence;ZLjava/lang/CharSequence;Ljava/lang/CharSequence;Lkotlin/jvm/functions/Function0;ZLjava/lang/CharSequence;Lkotlin/jvm/functions/Function0;Ljava/util/List;Lkotlin/jvm/functions/Function1;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "headerImage"
|
|
|
|
|
|
|
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
const-string v0, "headerText"
|
|
|
|
|
|
|
|
invoke-static {p4, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object v0, p0, Lcom/discord/views/ActiveSubscriptionView;->zw:Landroid/widget/ImageView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zx:Landroid/widget/ImageView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget v0, p2, Lcom/discord/views/ActiveSubscriptionView$HeaderImage;->drawableRes:I
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zx:Landroid/widget/ImageView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget p2, p2, Lcom/discord/views/ActiveSubscriptionView$HeaderImage;->scaleX:F
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setScaleX(F)V
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zy:Landroid/widget/ImageView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, p3}, Landroid/widget/ImageView;->setImageResource(I)V
|
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->headerTv:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zD:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 p2, 0x0
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zE:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {p1, p6}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zE:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-static {}, Landroid/text/method/LinkMovementMethod;->getInstance()Landroid/text/method/MovementMethod;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
invoke-virtual {p1, p3}, Landroid/widget/TextView;->setMovementMethod(Landroid/text/method/MovementMethod;)V
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zz:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
check-cast p1, Landroid/view/View;
|
|
|
|
|
|
|
|
const/4 p3, 0x2
|
|
|
|
|
|
|
|
const/4 p4, 0x0
|
|
|
|
|
|
|
|
invoke-static {p1, p5, p4, p3, p2}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy$default(Landroid/view/View;ZIILjava/lang/Object;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x4
|
|
|
|
|
|
|
|
if-eqz p7, :cond_0
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p5, p0, Lcom/discord/views/ActiveSubscriptionView;->zA:Landroid/widget/Button;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p5, p7}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p5, p0, Lcom/discord/views/ActiveSubscriptionView;->zA:Landroid/widget/Button;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p5, p4}, Landroid/widget/Button;->setVisibility(I)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p5, p0, Lcom/discord/views/ActiveSubscriptionView;->zA:Landroid/widget/Button;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p5, p1}, Landroid/widget/Button;->setVisibility(I)V
|
|
|
|
|
|
|
|
:goto_0
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p5, p0, Lcom/discord/views/ActiveSubscriptionView;->zA:Landroid/widget/Button;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance p6, Lcom/discord/views/ActiveSubscriptionView$b;
|
|
|
|
|
|
|
|
invoke-direct {p6, p8}, Lcom/discord/views/ActiveSubscriptionView$b;-><init>(Lkotlin/jvm/functions/Function0;)V
|
|
|
|
|
|
|
|
check-cast p6, Landroid/view/View$OnClickListener;
|
|
|
|
|
|
|
|
invoke-virtual {p5, p6}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p5, p0, Lcom/discord/views/ActiveSubscriptionView;->zA:Landroid/widget/Button;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
check-cast p5, Landroid/view/View;
|
|
|
|
|
|
|
|
const/4 p6, 0x1
|
|
|
|
|
|
|
|
if-nez p9, :cond_2
|
|
|
|
|
|
|
|
if-eqz p7, :cond_2
|
|
|
|
|
|
|
|
invoke-interface {p7}, Ljava/lang/CharSequence;->length()I
|
|
|
|
|
|
|
|
move-result p7
|
|
|
|
|
|
|
|
if-lez p7, :cond_1
|
|
|
|
|
|
|
|
const/4 p7, 0x1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 p7, 0x0
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
if-ne p7, p6, :cond_2
|
|
|
|
|
|
|
|
const/4 p7, 0x1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
const/4 p7, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
invoke-static {p5, p7, p1}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy(Landroid/view/View;ZI)V
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zB:Landroid/widget/ProgressBar;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
check-cast p1, Landroid/view/View;
|
|
|
|
|
|
|
|
invoke-static {p1, p9, p4, p3, p2}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy$default(Landroid/view/View;ZIILjava/lang/Object;)V
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zC:Landroid/widget/Button;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-static {p1, p10}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setTextAndVisibilityBy(Landroid/widget/TextView;Ljava/lang/CharSequence;)V
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zC:Landroid/widget/Button;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance p3, Lcom/discord/views/ActiveSubscriptionView$c;
|
|
|
|
|
|
|
|
invoke-direct {p3, p11}, Lcom/discord/views/ActiveSubscriptionView$c;-><init>(Lkotlin/jvm/functions/Function0;)V
|
|
|
|
|
|
|
|
check-cast p3, Landroid/view/View$OnClickListener;
|
|
|
|
|
|
|
|
invoke-virtual {p1, p3}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
|
|
|
|
xor-int/lit8 p1, p9, 0x1
|
|
|
|
|
|
|
|
if-eqz p12, :cond_3
|
|
|
|
|
|
|
|
move-object p3, p12
|
|
|
|
|
|
|
|
check-cast p3, Ljava/util/Collection;
|
|
|
|
|
|
|
|
invoke-interface {p3}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result p3
|
|
|
|
|
|
|
|
xor-int/2addr p3, p6
|
|
|
|
|
|
|
|
if-eqz p3, :cond_3
|
|
|
|
|
|
|
|
new-instance p3, Lcom/discord/views/ActiveSubscriptionView$a;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/views/ActiveSubscriptionView;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object p5
|
|
|
|
|
|
|
|
const-string p6, "context"
|
|
|
|
|
|
|
|
invoke-static {p5, p6}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-direct {p3, p5, p12}, Lcom/discord/views/ActiveSubscriptionView$a;-><init>(Landroid/content/Context;Ljava/util/List;)V
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p5, p0, Lcom/discord/views/ActiveSubscriptionView;->zv:Landroid/widget/Spinner;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p5, p2}, Landroid/widget/Spinner;->setOnItemSelectedListener(Landroid/widget/AdapterView$OnItemSelectedListener;)V
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p2, p0, Lcom/discord/views/ActiveSubscriptionView;->zv:Landroid/widget/Spinner;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
check-cast p3, Landroid/widget/SpinnerAdapter;
|
|
|
|
|
|
|
|
invoke-virtual {p2, p3}, Landroid/widget/Spinner;->setAdapter(Landroid/widget/SpinnerAdapter;)V
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p2, p0, Lcom/discord/views/ActiveSubscriptionView;->zv:Landroid/widget/Spinner;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance p3, Lcom/discord/views/ActiveSubscriptionView$d;
|
|
|
|
|
|
|
|
invoke-direct {p3, p12, p13}, Lcom/discord/views/ActiveSubscriptionView$d;-><init>(Ljava/util/List;Lkotlin/jvm/functions/Function1;)V
|
|
|
|
|
|
|
|
check-cast p3, Landroid/widget/AdapterView$OnItemSelectedListener;
|
|
|
|
|
|
|
|
invoke-virtual {p2, p3}, Landroid/widget/Spinner;->setOnItemSelectedListener(Landroid/widget/AdapterView$OnItemSelectedListener;)V
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p2, p0, Lcom/discord/views/ActiveSubscriptionView;->zv:Landroid/widget/Spinner;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, p4}, Landroid/widget/Spinner;->setVisibility(I)V
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p2, p0, Lcom/discord/views/ActiveSubscriptionView;->zu:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, p4}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p0, p0, Lcom/discord/views/ActiveSubscriptionView;->zv:Landroid/widget/Spinner;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Landroid/widget/Spinner;->setEnabled(Z)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_3
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p1, p0, Lcom/discord/views/ActiveSubscriptionView;->zv:Landroid/widget/Spinner;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/16 p2, 0x8
|
|
|
|
|
|
|
|
invoke-virtual {p1, p2}, Landroid/widget/Spinner;->setVisibility(I)V
|
|
|
|
|
2019-07-29 20:14:17 +00:00
|
|
|
iget-object p0, p0, Lcom/discord/views/ActiveSubscriptionView;->zu:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p2}, Landroid/widget/TextView;->setVisibility(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|