ScrapLevelViewBindingAdapter.smali

.class public Lcom/sandboxol/center/binding/adapter/ScrapLevelViewBindingAdapter;
.super Ljava/lang/Object;
.source "ScrapLevelViewBindingAdapter.java"


# direct methods
.method public constructor <init>()V
    .registers 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/sandboxol/common/command/ReplyCommand;ILcom/sandboxol/common/command/ReplyCommand;Lcom/sandboxol/center/view/widget/ScrapLevelImageView;)V
    .registers 4

    if-eqz p0, :cond_9

    .line 1
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/sandboxol/common/command/ReplyCommand;->execute(Ljava/lang/Object;)V

    :cond_9
    if-eqz p2, :cond_e

    .line 2
    invoke-virtual {p2, p3}, Lcom/sandboxol/common/command/ReplyCommand;->execute(Ljava/lang/Object;)V

    :cond_e
    return-void
.end method

.method public static setColor(Landroid/widget/TextView;Z)V
    .registers 3

    if-eqz p0, :cond_1c

    if-eqz p1, :cond_f

    .line 1
    invoke-virtual {p0}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

    move-result-object p1

    sget v0, Lcom/sandboxol/center/R$color;->textColorSecondary:I

    invoke-static {p1, v0}, Landroidx/core/content/b;->a(Landroid/content/Context;I)I

    move-result p1

    goto :goto_19

    .line 2
    :cond_f
    invoke-virtual {p0}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

    move-result-object p1

    sget v0, Lcom/sandboxol/center/R$color;->textColorPrimary:I

    invoke-static {p1, v0}, Landroidx/core/content/b;->a(Landroid/content/Context;I)I

    move-result p1

    .line 3
    :goto_19
    invoke-virtual {p0, p1}, Landroid/widget/TextView;->setTextColor(I)V

    :cond_1c
    return-void
.end method

.method public static setScrapImageViewAnim(Lcom/sandboxol/center/view/widget/ScrapLevelImageView;Z)V
    .registers 2

    if-eqz p0, :cond_5

    .line 1
    invoke-virtual {p0, p1}, Lcom/sandboxol/center/view/widget/ScrapLevelImageView;->setAnim(Z)V

    :cond_5
    return-void
.end method

.method public static setScrapImageViewLevel(Lcom/sandboxol/center/view/widget/ScrapLevelImageView;I)V
    .registers 2

    if-eqz p0, :cond_5

    .line 1
    invoke-virtual {p0, p1}, Lcom/sandboxol/center/view/widget/ScrapLevelImageView;->setType(I)V

    :cond_5
    return-void
.end method

.method public static setScrapImageViewNum(Lcom/sandboxol/center/view/widget/ScrapLevelImageView;I)V
    .registers 2

    if-eqz p0, :cond_5

    .line 1
    invoke-virtual {p0, p1}, Lcom/sandboxol/center/view/widget/ScrapLevelImageView;->setIvLevel(I)V

    :cond_5
    return-void
.end method

.method public static setScrapImageViewNumStatus(Lcom/sandboxol/center/view/widget/ScrapLevelImageView;ILjava/lang/String;)V
    .registers 3

    if-eqz p0, :cond_d

    if-eqz p1, :cond_6

    const/4 p1, 0x0

    goto :goto_7

    :cond_6
    const/4 p1, 0x4

    .line 1
    :goto_7
    invoke-virtual {p0, p1}, Lcom/sandboxol/center/view/widget/ScrapLevelImageView;->setScrapTextStatus(I)V

    .line 2
    invoke-virtual {p0, p2}, Lcom/sandboxol/center/view/widget/ScrapLevelImageView;->setScrapText(Ljava/lang/String;)V

    :cond_d
    return-void
.end method

.method public static setScrapImageViewOnClick(Lcom/sandboxol/center/view/widget/ScrapLevelImageView;Lcom/sandboxol/common/command/ReplyCommand;ILcom/sandboxol/common/command/ReplyCommand;)V
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/sandboxol/center/view/widget/ScrapLevelImageView;",
            "Lcom/sandboxol/common/command/ReplyCommand<",
            "Ljava/lang/Integer;",
            ">;I",
            "Lcom/sandboxol/common/command/ReplyCommand<",
            "Lcom/sandboxol/center/view/widget/ScrapLevelImageView;",
            ">;)V"
        }
    .end annotation

    if-eqz p0, :cond_a

    .line 1
    new-instance v0, Lcom/sandboxol/center/binding/adapter/c;

    invoke-direct {v0, p1, p2, p3, p0}, Lcom/sandboxol/center/binding/adapter/c;-><init>(Lcom/sandboxol/common/command/ReplyCommand;ILcom/sandboxol/common/command/ReplyCommand;Lcom/sandboxol/center/view/widget/ScrapLevelImageView;)V

    invoke-virtual {p0, v0}, Lcom/sandboxol/center/view/widget/ScrapLevelImageView;->setClickListener(Lcom/sandboxol/common/listener/OnViewClickListener;)V

    :cond_a
    return-void
.end method

.method public static setScrapImageViewPercentStatus(Lcom/sandboxol/center/view/widget/ScrapLevelImageView;ILjava/lang/String;)V
    .registers 3

    if-eqz p0, :cond_d

    if-eqz p1, :cond_6

    const/4 p1, 0x0

    goto :goto_7

    :cond_6
    const/4 p1, 0x4

    .line 1
    :goto_7
    invoke-virtual {p0, p1}, Lcom/sandboxol/center/view/widget/ScrapLevelImageView;->setScrapTextStatus(I)V

    .line 2
    invoke-virtual {p0, p2}, Lcom/sandboxol/center/view/widget/ScrapLevelImageView;->setScrapGameText(Ljava/lang/String;)V

    :cond_d
    return-void
.end method

.method public static setScrapImageViewResId(Lcom/sandboxol/center/view/widget/ScrapLevelImageView;I)V
    .registers 2

    if-eqz p0, :cond_5

    .line 1
    invoke-virtual {p0, p1}, Lcom/sandboxol/center/view/widget/ScrapLevelImageView;->setResId(I)V

    :cond_5
    return-void
.end method

.method public static setScrapImageViewStatus(Lcom/sandboxol/center/view/widget/ScrapLevelImageView;IIIZ)V
    .registers 8

    if-eqz p0, :cond_1c

    const/4 v0, 0x1

    const/4 v1, 0x4

    const/4 v2, 0x0

    if-ne p1, v0, :cond_9

    const/4 p1, 0x4

    goto :goto_a

    :cond_9
    const/4 p1, 0x0

    .line 1
    :goto_a
    invoke-virtual {p0, p1}, Lcom/sandboxol/center/view/widget/ScrapLevelImageView;->setScrapShadowStatus(I)V

    const/4 p1, 0x2

    if-ne p2, p1, :cond_12

    const/4 p1, 0x0

    goto :goto_13

    :cond_12
    const/4 p1, 0x4

    .line 2
    :goto_13
    invoke-virtual {p0, p1}, Lcom/sandboxol/center/view/widget/ScrapLevelImageView;->setScrapDoneStatus(I)V

    if-nez p3, :cond_19

    const/4 v1, 0x0

    .line 3
    :cond_19
    invoke-virtual {p0, v1, p4}, Lcom/sandboxol/center/view/widget/ScrapLevelImageView;->setScrapLockStatus(IZ)V

    :cond_1c
    return-void
.end method

.method public static setScrapImageViewType(Lcom/sandboxol/center/view/widget/ScrapLevelImageView;I)V
    .registers 2

    if-eqz p0, :cond_5

    .line 1
    invoke-virtual {p0, p1}, Lcom/sandboxol/center/view/widget/ScrapLevelImageView;->setType(I)V

    :cond_5
    return-void
.end method

.method public static setScrapImageViewUrl(Lcom/sandboxol/center/view/widget/ScrapLevelImageView;Ljava/lang/String;)V
    .registers 2

    if-eqz p0, :cond_5

    .line 1
    invoke-virtual {p0, p1}, Lcom/sandboxol/center/view/widget/ScrapLevelImageView;->setPic(Ljava/lang/String;)V

    :cond_5
    return-void
.end method