FollowButton.smali

.class public final Lcom/singbox/ui/widget/follow/FollowButton;
.super Lcom/singbox/ui/widget/follow/AbsFollowButton;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/singbox/ui/widget/follow/FollowButton$a;
    }
.end annotation


# static fields
.field static final synthetic c:[Lkotlin/k/g;

.field public static final d:Lcom/singbox/ui/widget/follow/FollowButton$a;


# instance fields
.field private e:Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

.field private final f:J

.field private g:Lkotlin/f/a/b;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lkotlin/f/a/b<",
            "-",
            "Ljava/lang/Integer;",
            "Lkotlin/w;",
            ">;"
        }
    .end annotation
.end field

.field private final h:Lkotlin/f;


# direct methods
.method static constructor <clinit>()V
    .registers 5

    const/4 v0, 0x1

    new-array v0, v0, [Lkotlin/k/g;

    new-instance v1, Lkotlin/f/b/z;

    const-class v2, Lcom/singbox/ui/widget/follow/FollowButton;

    invoke-static {v2}, Lkotlin/f/b/ab;->a(Ljava/lang/Class;)Lkotlin/k/b;

    move-result-object v2

    const-string v3, "svgaParser"

    const-string v4, "getSvgaParser()Lcom/opensource/svgaplayer/SVGAParser;"

    invoke-direct {v1, v2, v3, v4}, Lkotlin/f/b/z;-><init>(Lkotlin/k/c;Ljava/lang/String;Ljava/lang/String;)V

    invoke-static {v1}, Lkotlin/f/b/ab;->a(Lkotlin/f/b/y;)Lkotlin/k/j;

    move-result-object v1

    check-cast v1, Lkotlin/k/g;

    const/4 v2, 0x0

    aput-object v1, v0, v2

    sput-object v0, Lcom/singbox/ui/widget/follow/FollowButton;->c:[Lkotlin/k/g;

    new-instance v0, Lcom/singbox/ui/widget/follow/FollowButton$a;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Lcom/singbox/ui/widget/follow/FollowButton$a;-><init>(Lkotlin/f/b/j;)V

    sput-object v0, Lcom/singbox/ui/widget/follow/FollowButton;->d:Lcom/singbox/ui/widget/follow/FollowButton$a;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .registers 4

    .line 30
    invoke-direct {p0, p1}, Lcom/singbox/ui/widget/follow/AbsFollowButton;-><init>(Landroid/content/Context;)V

    const-wide/16 v0, 0x1f4

    .line 22
    iput-wide v0, p0, Lcom/singbox/ui/widget/follow/FollowButton;->f:J

    .line 51
    sget-object p1, Lcom/singbox/ui/widget/follow/FollowButton$f;->a:Lcom/singbox/ui/widget/follow/FollowButton$f;

    check-cast p1, Lkotlin/f/a/a;

    invoke-static {p1}, Lkotlin/g;->a(Lkotlin/f/a/a;)Lkotlin/f;

    move-result-object p1

    iput-object p1, p0, Lcom/singbox/ui/widget/follow/FollowButton;->h:Lkotlin/f;

    .line 31
    invoke-direct {p0}, Lcom/singbox/ui/widget/follow/FollowButton;->b()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 3

    .line 34
    invoke-direct {p0, p1, p2}, Lcom/singbox/ui/widget/follow/AbsFollowButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const-wide/16 p1, 0x1f4

    .line 22
    iput-wide p1, p0, Lcom/singbox/ui/widget/follow/FollowButton;->f:J

    .line 51
    sget-object p1, Lcom/singbox/ui/widget/follow/FollowButton$f;->a:Lcom/singbox/ui/widget/follow/FollowButton$f;

    check-cast p1, Lkotlin/f/a/a;

    invoke-static {p1}, Lkotlin/g;->a(Lkotlin/f/a/a;)Lkotlin/f;

    move-result-object p1

    iput-object p1, p0, Lcom/singbox/ui/widget/follow/FollowButton;->h:Lkotlin/f;

    .line 35
    invoke-direct {p0}, Lcom/singbox/ui/widget/follow/FollowButton;->b()V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 4

    .line 38
    invoke-direct {p0, p1, p2, p3}, Lcom/singbox/ui/widget/follow/AbsFollowButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const-wide/16 p1, 0x1f4

    .line 22
    iput-wide p1, p0, Lcom/singbox/ui/widget/follow/FollowButton;->f:J

    .line 51
    sget-object p1, Lcom/singbox/ui/widget/follow/FollowButton$f;->a:Lcom/singbox/ui/widget/follow/FollowButton$f;

    check-cast p1, Lkotlin/f/a/a;

    invoke-static {p1}, Lkotlin/g;->a(Lkotlin/f/a/a;)Lkotlin/f;

    move-result-object p1

    iput-object p1, p0, Lcom/singbox/ui/widget/follow/FollowButton;->h:Lkotlin/f;

    .line 39
    invoke-direct {p0}, Lcom/singbox/ui/widget/follow/FollowButton;->b()V

    return-void
.end method

.method public static synthetic a(Lcom/singbox/ui/widget/follow/FollowButton;)V
    .registers 5

    .line 2151
    sget-object v0, Landroid/view/View;->ALPHA:Landroid/util/Property;

    const/4 v1, 0x2

    new-array v1, v1, [F

    invoke-virtual {p0}, Lcom/singbox/ui/widget/follow/FollowButton;->getAlpha()F

    move-result v2

    const/4 v3, 0x0

    aput v2, v1, v3

    const/4 v2, 0x1

    const/4 v3, 0x0

    aput v3, v1, v2

    invoke-static {p0, v0, v1}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Landroid/util/Property;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    .line 2153
    iget-wide v1, p0, Lcom/singbox/ui/widget/follow/FollowButton;->f:J

    invoke-virtual {v0, v1, v2}, Landroid/animation/ObjectAnimator;->setStartDelay(J)V

    .line 2154
    new-instance v1, Lcom/singbox/ui/widget/follow/FollowButton$b;

    invoke-direct {v1, p0}, Lcom/singbox/ui/widget/follow/FollowButton$b;-><init>(Lcom/singbox/ui/widget/follow/FollowButton;)V

    check-cast v1, Landroid/animation/Animator$AnimatorListener;

    invoke-virtual {v0, v1}, Landroid/animation/ObjectAnimator;->addListener(Landroid/animation/Animator$AnimatorListener;)V

    .line 2167
    invoke-virtual {v0}, Landroid/animation/ObjectAnimator;->start()V

    return-void
.end method

.method private final varargs a([Landroid/view/View;)V
    .registers 6

    .line 129
    iget-object v0, p0, Lcom/singbox/ui/widget/follow/FollowButton;->e:Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

    const-string v1, "binding"

    if-nez v0, :cond_9

    invoke-static {v1}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V

    :cond_9
    iget-object v0, v0, Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;->c:Landroid/widget/ProgressBar;

    const-string v2, "binding.singPbLoading"

    invoke-static {v0, v2}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    const/4 v2, 0x4

    invoke-virtual {v0, v2}, Landroid/widget/ProgressBar;->setVisibility(I)V

    .line 130
    iget-object v0, p0, Lcom/singbox/ui/widget/follow/FollowButton;->e:Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

    if-nez v0, :cond_1b

    invoke-static {v1}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V

    :cond_1b
    iget-object v0, v0, Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;->a:Landroid/widget/ImageView;

    const-string v3, "binding.singIvAdd"

    invoke-static {v0, v3}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 131
    iget-object v0, p0, Lcom/singbox/ui/widget/follow/FollowButton;->e:Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

    if-nez v0, :cond_2c

    invoke-static {v1}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V

    :cond_2c
    iget-object v0, v0, Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;->d:Landroid/widget/TextView;

    const-string v3, "binding.singTvText"

    invoke-static {v0, v3}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    .line 132
    iget-object v0, p0, Lcom/singbox/ui/widget/follow/FollowButton;->e:Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

    if-nez v0, :cond_3d

    invoke-static {v1}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V

    :cond_3d
    iget-object v0, v0, Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;->b:Lcom/opensource/svgaplayer/SVGAImageView;

    const-string v1, "binding.singIvIconCenter"

    invoke-static {v0, v1}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {v0, v2}, Lcom/opensource/svgaplayer/SVGAImageView;->setVisibility(I)V

    .line 133
    array-length v0, p1

    const/4 v1, 0x0

    const/4 v2, 0x0

    :goto_4a
    if-ge v2, v0, :cond_54

    aget-object v3, p1, v2

    .line 134
    invoke-virtual {v3, v1}, Landroid/view/View;->setVisibility(I)V

    add-int/lit8 v2, v2, 0x1

    goto :goto_4a

    :cond_54
    return-void
.end method

.method public static final synthetic b(Lcom/singbox/ui/widget/follow/FollowButton;)Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;
    .registers 2

    .line 20
    iget-object p0, p0, Lcom/singbox/ui/widget/follow/FollowButton;->e:Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

    if-nez p0, :cond_9

    const-string v0, "binding"

    invoke-static {v0}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V

    :cond_9
    return-object p0
.end method

.method private final b()V
    .registers 7

    const/high16 v0, 0x42700000    # 60.0f

    .line 43
    invoke-static {v0}, Lsg/bigo/common/k;->a(F)I

    move-result v0

    invoke-virtual {p0, v0}, Lcom/singbox/ui/widget/follow/FollowButton;->setMinimumWidth(I)V

    .line 44
    sget v0, Lcom/singbox/common/a$c;->color_ff4d5b:I

    invoke-static {v0}, Lsg/bigo/mobile/android/aab/c/b;->b(I)I

    move-result v0

    invoke-virtual {p0, v0}, Lcom/singbox/ui/widget/follow/FollowButton;->setMTextColor(I)V

    .line 45
    invoke-virtual {p0}, Lcom/singbox/ui/widget/follow/FollowButton;->getContext()Landroid/content/Context;

    move-result-object v0

    sget v1, Lcom/singbox/common/a$f;->sing_layout_follow_button:I

    move-object v2, p0

    check-cast v2, Landroid/view/ViewGroup;

    invoke-static {v0, v1, v2}, Landroid/widget/FrameLayout;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    .line 46
    move-object v0, p0

    check-cast v0, Landroid/view/View;

    invoke-static {v0}, Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;->a(Landroid/view/View;)Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

    move-result-object v0

    const-string v1, "SingLayoutFollowButtonBinding.bind(this)"

    invoke-static {v0, v1}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    iput-object v0, p0, Lcom/singbox/ui/widget/follow/FollowButton;->e:Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

    const-string v1, "binding"

    if-nez v0, :cond_33

    .line 47
    invoke-static {v1}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V

    :cond_33
    iget-object v0, v0, Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;->c:Landroid/widget/ProgressBar;

    const-string v2, "binding.singPbLoading"

    invoke-static {v0, v2}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    sget v2, Lcom/singbox/common/a$c;->color_bbbbbb:I

    invoke-static {v2}, Lsg/bigo/mobile/android/aab/c/b;->b(I)I

    move-result v2

    const-string v3, "progressBar"

    invoke-static {v0, v3}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V

    .line 1138
    sget v3, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v4, 0xe

    if-lt v3, v4, :cond_60

    .line 1139
    new-instance v3, Lcom/singbox/ui/widget/material/materialprogressbar/IndeterminateProgressDrawable;

    invoke-virtual {p0}, Lcom/singbox/ui/widget/follow/AbsFollowButton;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-direct {v3, v4}, Lcom/singbox/ui/widget/material/materialprogressbar/IndeterminateProgressDrawable;-><init>(Landroid/content/Context;)V

    .line 1140
    invoke-virtual {v3, v2}, Lcom/singbox/ui/widget/material/materialprogressbar/IndeterminateProgressDrawable;->setTint(I)V

    .line 1141
    check-cast v3, Landroid/graphics/drawable/Drawable;

    invoke-virtual {v0, v3}, Landroid/widget/ProgressBar;->setProgressDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 1142
    invoke-virtual {v0, v3}, Landroid/widget/ProgressBar;->setIndeterminateDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_98

    .line 2033
    :cond_60
    invoke-static {v2}, Landroid/content/res/ColorStateList;->valueOf(I)Landroid/content/res/ColorStateList;

    move-result-object v3

    .line 2034
    sget v4, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v5, 0x15

    if-lt v4, v5, :cond_74

    .line 2035
    invoke-virtual {v0, v3}, Landroid/widget/ProgressBar;->setProgressTintList(Landroid/content/res/ColorStateList;)V

    .line 2036
    invoke-virtual {v0, v3}, Landroid/widget/ProgressBar;->setSecondaryProgressTintList(Landroid/content/res/ColorStateList;)V

    .line 2038
    invoke-virtual {v0, v3}, Landroid/widget/ProgressBar;->setIndeterminateTintList(Landroid/content/res/ColorStateList;)V

    goto :goto_98

    .line 2040
    :cond_74
    sget-object v3, Landroid/graphics/PorterDuff$Mode;->SRC_IN:Landroid/graphics/PorterDuff$Mode;

    .line 2041
    sget v4, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v5, 0xa

    if-gt v4, v5, :cond_7e

    .line 2042
    sget-object v3, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;

    .line 2044
    :cond_7e
    invoke-virtual {v0}, Landroid/widget/ProgressBar;->getIndeterminateDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v4

    if-eqz v4, :cond_8b

    .line 2045
    invoke-virtual {v0}, Landroid/widget/ProgressBar;->getIndeterminateDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v4

    invoke-virtual {v4, v2, v3}, Landroid/graphics/drawable/Drawable;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V

    .line 2046
    :cond_8b
    invoke-virtual {v0}, Landroid/widget/ProgressBar;->getProgressDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v4

    if-eqz v4, :cond_98

    .line 2047
    invoke-virtual {v0}, Landroid/widget/ProgressBar;->getProgressDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {v0, v2, v3}, Landroid/graphics/drawable/Drawable;->setColorFilter(ILandroid/graphics/PorterDuff$Mode;)V

    .line 48
    :cond_98
    :goto_98
    invoke-direct {p0}, Lcom/singbox/ui/widget/follow/FollowButton;->c()V

    .line 2054
    iget-object v0, p0, Lcom/singbox/ui/widget/follow/FollowButton;->e:Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

    if-nez v0, :cond_a2

    invoke-static {v1}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V

    :cond_a2
    iget-object v0, v0, Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;->b:Lcom/opensource/svgaplayer/SVGAImageView;

    new-instance v1, Lcom/singbox/ui/widget/follow/FollowButton$e;

    invoke-direct {v1, p0}, Lcom/singbox/ui/widget/follow/FollowButton$e;-><init>(Lcom/singbox/ui/widget/follow/FollowButton;)V

    check-cast v1, Lcom/opensource/svgaplayer/d;

    invoke-virtual {v0, v1}, Lcom/opensource/svgaplayer/SVGAImageView;->setCallback(Lcom/opensource/svgaplayer/d;)V

    return-void
.end method

.method private final c()V
    .registers 6

    const/4 v0, 0x1

    .line 139
    invoke-virtual {p0, v0}, Lcom/singbox/ui/widget/follow/FollowButton;->setEnabled(Z)V

    const/4 v1, 0x2

    new-array v1, v1, [Landroid/view/View;

    .line 141
    iget-object v2, p0, Lcom/singbox/ui/widget/follow/FollowButton;->e:Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

    const-string v3, "binding"

    if-nez v2, :cond_10

    invoke-static {v3}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V

    :cond_10
    iget-object v2, v2, Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;->a:Landroid/widget/ImageView;

    const-string v4, "binding.singIvAdd"

    invoke-static {v2, v4}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast v2, Landroid/view/View;

    const/4 v4, 0x0

    aput-object v2, v1, v4

    iget-object v2, p0, Lcom/singbox/ui/widget/follow/FollowButton;->e:Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

    if-nez v2, :cond_23

    invoke-static {v3}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V

    :cond_23
    iget-object v2, v2, Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;->d:Landroid/widget/TextView;

    const-string v4, "binding.singTvText"

    invoke-static {v2, v4}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast v2, Landroid/view/View;

    aput-object v2, v1, v0

    invoke-direct {p0, v1}, Lcom/singbox/ui/widget/follow/FollowButton;->a([Landroid/view/View;)V

    .line 142
    iget-object v0, p0, Lcom/singbox/ui/widget/follow/FollowButton;->e:Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

    if-nez v0, :cond_38

    invoke-static {v3}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V

    :cond_38
    iget-object v0, v0, Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;->a:Landroid/widget/ImageView;

    sget v1, Lcom/singbox/common/a$d;->sing_ic_follow_button_add_light:I

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 143
    iget-object v0, p0, Lcom/singbox/ui/widget/follow/FollowButton;->e:Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

    if-nez v0, :cond_46

    invoke-static {v3}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V

    :cond_46
    iget-object v0, v0, Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;->d:Landroid/widget/TextView;

    sget v1, Lcom/singbox/common/a$g;->str_sing_follow:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 144
    iget-object v0, p0, Lcom/singbox/ui/widget/follow/FollowButton;->e:Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

    if-nez v0, :cond_54

    invoke-static {v3}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V

    :cond_54
    iget-object v0, v0, Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;->d:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/singbox/ui/widget/follow/FollowButton;->getMTextColor()I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    .line 145
    sget v0, Lcom/singbox/common/a$d;->sing_bg_follow_btn_white:I

    invoke-virtual {p0, v0}, Lcom/singbox/ui/widget/follow/FollowButton;->setBackgroundResource(I)V

    return-void
.end method


# virtual methods
.method public final a(II)V
    .registers 9

    const/4 v0, 0x5

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-eq p2, v0, :cond_7

    const/4 v3, 0x1

    goto :goto_8

    :cond_7
    const/4 v3, 0x0

    .line 71
    :goto_8
    invoke-virtual {p0, v3}, Lcom/singbox/ui/widget/follow/FollowButton;->setEnabled(Z)V

    .line 73
    invoke-direct {p0}, Lcom/singbox/ui/widget/follow/FollowButton;->c()V

    const-string v3, "binding.singIvIconCenter"

    const-string v4, "binding"

    if-eq p2, v1, :cond_8a

    const/4 v5, 0x2

    if-eq p2, v5, :cond_53

    const/4 p1, 0x3

    if-eq p2, p1, :cond_44

    if-eq p2, v0, :cond_1d

    goto :goto_52

    :cond_1d
    new-array p1, v1, [Landroid/view/View;

    .line 94
    iget-object p2, p0, Lcom/singbox/ui/widget/follow/FollowButton;->e:Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

    if-nez p2, :cond_26

    invoke-static {v4}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V

    :cond_26
    iget-object p2, p2, Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;->c:Landroid/widget/ProgressBar;

    const-string v0, "binding.singPbLoading"

    invoke-static {p2, v0}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast p2, Landroid/view/View;

    aput-object p2, p1, v2

    invoke-direct {p0, p1}, Lcom/singbox/ui/widget/follow/FollowButton;->a([Landroid/view/View;)V

    .line 95
    iget-object p1, p0, Lcom/singbox/ui/widget/follow/FollowButton;->e:Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

    if-nez p1, :cond_3b

    invoke-static {v4}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V

    :cond_3b
    iget-object p1, p1, Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;->c:Landroid/widget/ProgressBar;

    invoke-static {p1, v0}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    invoke-virtual {p1, v2}, Landroid/widget/ProgressBar;->setVisibility(I)V

    return-void

    .line 117
    :cond_44
    iget-object p1, p0, Lcom/singbox/ui/widget/follow/FollowButton;->e:Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

    if-nez p1, :cond_4b

    invoke-static {v4}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V

    :cond_4b
    iget-object p1, p1, Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;->d:Landroid/widget/TextView;

    sget p2, Lcom/singbox/common/a$g;->str_sing_follow_back:I

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(I)V

    :goto_52
    return-void

    :cond_53
    new-array p2, v1, [Landroid/view/View;

    .line 98
    iget-object v1, p0, Lcom/singbox/ui/widget/follow/FollowButton;->e:Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

    if-nez v1, :cond_5c

    invoke-static {v4}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V

    :cond_5c
    iget-object v1, v1, Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;->b:Lcom/opensource/svgaplayer/SVGAImageView;

    invoke-static {v1, v3}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast v1, Landroid/view/View;

    aput-object v1, p2, v2

    invoke-direct {p0, p2}, Lcom/singbox/ui/widget/follow/FollowButton;->a([Landroid/view/View;)V

    if-ne p1, v0, :cond_7b

    .line 100
    invoke-virtual {p0}, Lcom/singbox/ui/widget/follow/FollowButton;->getSvgaParser()Lcom/opensource/svgaplayer/h;

    move-result-object p1

    new-instance p2, Lcom/singbox/ui/widget/follow/FollowButton$d;

    invoke-direct {p2, p0}, Lcom/singbox/ui/widget/follow/FollowButton$d;-><init>(Lcom/singbox/ui/widget/follow/FollowButton;)V

    check-cast p2, Lcom/opensource/svgaplayer/h$d;

    const-string v0, "sing_svga_follow_friend.svga"

    invoke-virtual {p1, v0, p2}, Lcom/opensource/svgaplayer/h;->a(Ljava/lang/String;Lcom/opensource/svgaplayer/h$d;)V

    return-void

    .line 113
    :cond_7b
    iget-object p1, p0, Lcom/singbox/ui/widget/follow/FollowButton;->e:Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

    if-nez p1, :cond_82

    invoke-static {v4}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V

    :cond_82
    iget-object p1, p1, Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;->b:Lcom/opensource/svgaplayer/SVGAImageView;

    sget p2, Lcom/singbox/common/a$d;->sing_ic_follow_friend:I

    invoke-virtual {p1, p2}, Lcom/opensource/svgaplayer/SVGAImageView;->setImageResource(I)V

    return-void

    :cond_8a
    new-array p2, v1, [Landroid/view/View;

    .line 76
    iget-object v1, p0, Lcom/singbox/ui/widget/follow/FollowButton;->e:Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

    if-nez v1, :cond_93

    invoke-static {v4}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V

    :cond_93
    iget-object v1, v1, Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;->b:Lcom/opensource/svgaplayer/SVGAImageView;

    invoke-static {v1, v3}, Lkotlin/f/b/o;->a(Ljava/lang/Object;Ljava/lang/String;)V

    check-cast v1, Landroid/view/View;

    aput-object v1, p2, v2

    invoke-direct {p0, p2}, Lcom/singbox/ui/widget/follow/FollowButton;->a([Landroid/view/View;)V

    if-ne p1, v0, :cond_b2

    .line 78
    invoke-virtual {p0}, Lcom/singbox/ui/widget/follow/FollowButton;->getSvgaParser()Lcom/opensource/svgaplayer/h;

    move-result-object p1

    new-instance p2, Lcom/singbox/ui/widget/follow/FollowButton$c;

    invoke-direct {p2, p0}, Lcom/singbox/ui/widget/follow/FollowButton$c;-><init>(Lcom/singbox/ui/widget/follow/FollowButton;)V

    check-cast p2, Lcom/opensource/svgaplayer/h$d;

    const-string v0, "sing_svga_follow_i_follow.svga"

    invoke-virtual {p1, v0, p2}, Lcom/opensource/svgaplayer/h;->a(Ljava/lang/String;Lcom/opensource/svgaplayer/h$d;)V

    return-void

    .line 90
    :cond_b2
    iget-object p1, p0, Lcom/singbox/ui/widget/follow/FollowButton;->e:Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;

    if-nez p1, :cond_b9

    invoke-static {v4}, Lkotlin/f/b/o;->a(Ljava/lang/String;)V

    :cond_b9
    iget-object p1, p1, Lcom/singbox/common/databinding/SingLayoutFollowButtonBinding;->b:Lcom/opensource/svgaplayer/SVGAImageView;

    sget p2, Lcom/singbox/common/a$d;->sing_ic_follow_i_follow:I

    invoke-virtual {p1, p2}, Lcom/opensource/svgaplayer/SVGAImageView;->setImageResource(I)V

    return-void
.end method

.method public final getOnAnimationDoneListener()Lkotlin/f/a/b;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lkotlin/f/a/b<",
            "Ljava/lang/Integer;",
            "Lkotlin/w;",
            ">;"
        }
    .end annotation

    .line 23
    iget-object v0, p0, Lcom/singbox/ui/widget/follow/FollowButton;->g:Lkotlin/f/a/b;

    return-object v0
.end method

.method public final getSvgaParser()Lcom/opensource/svgaplayer/h;
    .registers 2

    iget-object v0, p0, Lcom/singbox/ui/widget/follow/FollowButton;->h:Lkotlin/f;

    invoke-interface {v0}, Lkotlin/f;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/opensource/svgaplayer/h;

    return-object v0
.end method

.method public final setOnAnimationDoneListener(Lkotlin/f/a/b;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lkotlin/f/a/b<",
            "-",
            "Ljava/lang/Integer;",
            "Lkotlin/w;",
            ">;)V"
        }
    .end annotation

    .line 23
    iput-object p1, p0, Lcom/singbox/ui/widget/follow/FollowButton;->g:Lkotlin/f/a/b;

    return-void
.end method