GameButton.smali

.class public final Lcom/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;
.super Landroid/widget/FrameLayout;
.source "SourceFile"


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


# instance fields
.field private b:Ljava/lang/String;

.field private final c: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/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;

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

    move-result-object v2

    const-string v3, "textView"

    const-string v4, "getTextView()Landroid/widget/TextView;"

    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/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;->a:[Lkotlin/k/g;

    return-void
.end method

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

    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/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/f/b/j;)V

    return-void
.end method

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

    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/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/f/b/j;)V

    return-void
.end method

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

    const-string v0, "context"

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

    .line 22
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 25
    new-instance p2, Lcom/imo/android/imoim/gamecenter/gamedetail/widget/GameButton$a;

    invoke-direct {p2, p1}, Lcom/imo/android/imoim/gamecenter/gamedetail/widget/GameButton$a;-><init>(Landroid/content/Context;)V

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

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

    move-result-object p1

    iput-object p1, p0, Lcom/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;->c:Lkotlin/f;

    return-void
.end method

.method public synthetic constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;IILkotlin/f/b/j;)V
    .registers 6

    and-int/lit8 p5, p4, 0x2

    if-eqz p5, :cond_5

    const/4 p2, 0x0

    :cond_5
    and-int/lit8 p4, p4, 0x4

    if-eqz p4, :cond_a

    const/4 p3, 0x0

    .line 21
    :cond_a
    invoke-direct {p0, p1, p2, p3}, Lcom/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method private final getTextView()Landroid/widget/TextView;
    .registers 2

    iget-object v0, p0, Lcom/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;->c:Lkotlin/f;

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

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    return-object v0
.end method


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

    .line 76
    iget-object v0, p0, Lcom/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;->b:Ljava/lang/String;

    if-nez v0, :cond_5

    return-void

    .line 78
    :cond_5
    invoke-static {v0}, Lcom/imo/android/imoim/gamecenter/module/b/a;->a(Ljava/lang/String;)Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_1e

    .line 79
    invoke-direct {p0}, Lcom/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;->getTextView()Landroid/widget/TextView;

    move-result-object v0

    const v2, 0x7f0f06fb

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

    .line 80
    invoke-direct {p0}, Lcom/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;->getTextView()Landroid/widget/TextView;

    move-result-object v0

    invoke-virtual {v0, v1, v1, v1, v1}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    return-void

    .line 82
    :cond_1e
    invoke-direct {p0}, Lcom/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;->getTextView()Landroid/widget/TextView;

    move-result-object v0

    const v2, 0x72070006

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

    .line 83
    invoke-direct {p0}, Lcom/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;->getTextView()Landroid/widget/TextView;

    move-result-object v0

    const v2, 0x72040008

    .line 84
    invoke-static {v2}, Lsg/bigo/mobile/android/aab/c/b;->a(I)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    .line 83
    invoke-virtual {v0, v2, v1, v1, v1}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V

    return-void
.end method

.method public final a(Ljava/lang/String;)V
    .registers 3

    const-string v0, "pkg"

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

    .line 71
    iput-object p1, p0, Lcom/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;->b:Ljava/lang/String;

    .line 72
    invoke-virtual {p0}, Lcom/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;->a()V

    return-void
.end method

.method protected final onFinishInflate()V
    .registers 5

    .line 50
    invoke-super {p0}, Landroid/widget/FrameLayout;->onFinishInflate()V

    .line 1056
    invoke-virtual {p0}, Lcom/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0701a5

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result v0

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

    const/4 v2, 0x0

    const/16 v3, 0x11

    if-lt v1, v3, :cond_19

    .line 1060
    invoke-virtual {p0, v0, v2, v0, v2}, Lcom/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;->setPaddingRelative(IIII)V

    goto :goto_1c

    .line 1062
    :cond_19
    invoke-virtual {p0, v0, v2, v0, v2}, Lcom/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;->setPadding(IIII)V

    .line 1064
    :goto_1c
    invoke-virtual {p0}, Lcom/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f080a92

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    .line 1067
    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 52
    invoke-direct {p0}, Lcom/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;->getTextView()Landroid/widget/TextView;

    move-result-object v0

    check-cast v0, Landroid/view/View;

    invoke-virtual {p0, v0}, Lcom/imo/android/imoim/gamecenter/gamedetail/widget/GameButton;->addView(Landroid/view/View;)V

    return-void
.end method