TextSettingsCell.smali

.class public Lim/tpelyyftgw/ui/cells/TextSettingsCell;
.super Landroid/widget/FrameLayout;
.source "TextSettingsCell.java"


# instance fields
.field private canDisable:Z

.field private needDivider:Z

.field private textView:Landroid/widget/TextView;

.field private valueImageView:Landroid/widget/ImageView;

.field private valueTextView:Landroid/widget/TextView;


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

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;)V
    .registers 3
    .param p1, "context"    # Landroid/content/Context;

    .line 35
    const/16 v0, 0x15

    invoke-direct {p0, p1, v0}, Lim/tpelyyftgw/ui/cells/TextSettingsCell;-><init>(Landroid/content/Context;I)V

    .line 36
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;I)V
    .registers 15
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "padding"    # I

    .line 39
    invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    .line 41
    new-instance v0, Landroid/widget/TextView;

    invoke-direct {v0, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->textView:Landroid/widget/TextView;

    .line 42
    const/4 v1, 0x1

    const/high16 v2, 0x41600000    # 14.0f

    invoke-virtual {v0, v1, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    .line 43
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->textView:Landroid/widget/TextView;

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

    .line 44
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->textView:Landroid/widget/TextView;

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

    .line 45
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->textView:Landroid/widget/TextView;

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

    .line 46
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->textView:Landroid/widget/TextView;

    sget-object v2, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V

    .line 47
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->textView:Landroid/widget/TextView;

    sget-boolean v2, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    const/4 v3, 0x5

    const/4 v4, 0x3

    if-eqz v2, :cond_30

    const/4 v2, 0x5

    goto :goto_31

    :cond_30
    const/4 v2, 0x3

    :goto_31
    or-int/lit8 v2, v2, 0x10

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

    .line 48
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->textView:Landroid/widget/TextView;

    const-string/jumbo v2, "windowBackgroundWhiteBlackText"

    invoke-static {v2}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v2

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

    .line 49
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->textView:Landroid/widget/TextView;

    const/high16 v5, -0x40800000    # -1.0f

    const/high16 v6, -0x40800000    # -1.0f

    sget-boolean v2, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v2, :cond_4e

    const/4 v2, 0x5

    goto :goto_4f

    :cond_4e
    const/4 v2, 0x3

    :goto_4f
    or-int/lit8 v7, v2, 0x30

    int-to-float v8, p2

    const/4 v9, 0x0

    int-to-float v10, p2

    const/4 v11, 0x0

    invoke-static/range {v5 .. v11}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v2

    invoke-virtual {p0, v0, v2}, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 51
    new-instance v0, Landroid/widget/TextView;

    invoke-direct {v0, p1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

    .line 52
    const/high16 v2, 0x41500000    # 13.0f

    invoke-virtual {v0, v1, v2}, Landroid/widget/TextView;->setTextSize(IF)V

    .line 53
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

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

    .line 54
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

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

    .line 55
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

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

    .line 56
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

    sget-object v1, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V

    .line 57
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

    sget-boolean v1, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v1, :cond_86

    const/4 v1, 0x3

    goto :goto_87

    :cond_86
    const/4 v1, 0x5

    :goto_87
    or-int/lit8 v1, v1, 0x10

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

    .line 58
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

    const-string/jumbo v1, "windowBackgroundWhiteValueText"

    invoke-static {v1}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v1

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

    .line 59
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

    const/high16 v5, -0x40000000    # -2.0f

    const/high16 v6, -0x40800000    # -1.0f

    sget-boolean v1, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v1, :cond_a4

    const/4 v1, 0x3

    goto :goto_a5

    :cond_a4
    const/4 v1, 0x5

    :goto_a5
    or-int/lit8 v7, v1, 0x30

    int-to-float v8, p2

    const/4 v9, 0x0

    int-to-float v10, p2

    const/4 v11, 0x0

    invoke-static/range {v5 .. v11}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 61
    new-instance v0, Landroid/widget/ImageView;

    invoke-direct {v0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueImageView:Landroid/widget/ImageView;

    .line 62
    sget-object v1, Landroid/widget/ImageView$ScaleType;->CENTER:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 63
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueImageView:Landroid/widget/ImageView;

    const/4 v1, 0x4

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

    .line 64
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueImageView:Landroid/widget/ImageView;

    new-instance v1, Landroid/graphics/PorterDuffColorFilter;

    const-string/jumbo v2, "windowBackgroundWhiteGrayIcon"

    invoke-static {v2}, Lim/tpelyyftgw/ui/actionbar/Theme;->getColor(Ljava/lang/String;)I

    move-result v2

    sget-object v5, Landroid/graphics/PorterDuff$Mode;->MULTIPLY:Landroid/graphics/PorterDuff$Mode;

    invoke-direct {v1, v2, v5}, Landroid/graphics/PorterDuffColorFilter;-><init>(ILandroid/graphics/PorterDuff$Mode;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setColorFilter(Landroid/graphics/ColorFilter;)V

    .line 65
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueImageView:Landroid/widget/ImageView;

    const/high16 v5, -0x40000000    # -2.0f

    const/high16 v6, -0x40000000    # -2.0f

    sget-boolean v1, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v1, :cond_e2

    const/4 v3, 0x3

    :cond_e2
    or-int/lit8 v7, v3, 0x10

    int-to-float v8, p2

    const/4 v9, 0x0

    int-to-float v10, p2

    const/4 v11, 0x0

    invoke-static/range {v5 .. v11}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrame(FFIFFFF)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 66
    return-void
.end method


# virtual methods
.method public getTextView()Landroid/widget/TextView;
    .registers 2

    .line 87
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->textView:Landroid/widget/TextView;

    return-object v0
.end method

.method public getValueTextView()Landroid/widget/TextView;
    .registers 2

    .line 95
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

    return-object v0
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .registers 10
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .line 176
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->needDivider:Z

    if-eqz v0, :cond_37

    .line 177
    sget-boolean v0, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    const/high16 v1, 0x41a00000    # 20.0f

    if-eqz v0, :cond_d

    const/4 v0, 0x0

    const/4 v3, 0x0

    goto :goto_13

    :cond_d
    invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v0

    int-to-float v0, v0

    move v3, v0

    :goto_13
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->getMeasuredHeight()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    int-to-float v4, v0

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->getMeasuredWidth()I

    move-result v0

    sget-boolean v2, Lim/tpelyyftgw/messenger/LocaleController;->isRTL:Z

    if-eqz v2, :cond_27

    invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v1

    goto :goto_28

    :cond_27
    const/4 v1, 0x0

    :goto_28
    sub-int/2addr v0, v1

    int-to-float v5, v0

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->getMeasuredHeight()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    int-to-float v6, v0

    sget-object v7, Lim/tpelyyftgw/ui/actionbar/Theme;->dividerPaint:Landroid/graphics/Paint;

    move-object v2, p1

    invoke-virtual/range {v2 .. v7}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    .line 179
    :cond_37
    return-void
.end method

.method public onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V
    .registers 3
    .param p1, "info"    # Landroid/view/accessibility/AccessibilityNodeInfo;

    .line 183
    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onInitializeAccessibilityNodeInfo(Landroid/view/accessibility/AccessibilityNodeInfo;)V

    .line 184
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->isEnabled()Z

    move-result v0

    invoke-virtual {p1, v0}, Landroid/view/accessibility/AccessibilityNodeInfo;->setEnabled(Z)V

    .line 185
    return-void
.end method

.method protected onMeasure(II)V
    .registers 10
    .param p1, "widthMeasureSpec"    # I
    .param p2, "heightMeasureSpec"    # I

    .line 70
    invoke-static {p1}, Landroid/view/View$MeasureSpec;->getSize(I)I

    move-result v0

    const/high16 v1, 0x42480000    # 50.0f

    invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v1

    iget-boolean v2, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->needDivider:Z

    add-int/2addr v1, v2

    invoke-virtual {p0, v0, v1}, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->setMeasuredDimension(II)V

    .line 72
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->getMeasuredWidth()I

    move-result v0

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->getPaddingLeft()I

    move-result v1

    sub-int/2addr v0, v1

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->getPaddingRight()I

    move-result v1

    sub-int/2addr v0, v1

    const/high16 v1, 0x42080000    # 34.0f

    invoke-static {v1}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v1

    sub-int/2addr v0, v1

    .line 73
    .local v0, "availableWidth":I
    div-int/lit8 v1, v0, 0x2

    .line 74
    .local v1, "width":I
    iget-object v2, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueImageView:Landroid/widget/ImageView;

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

    move-result v2

    const/high16 v3, -0x80000000

    const/high16 v4, 0x40000000    # 2.0f

    if-nez v2, :cond_44

    .line 75
    iget-object v2, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueImageView:Landroid/widget/ImageView;

    invoke-static {v1, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v5

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->getMeasuredHeight()I

    move-result v6

    invoke-static {v6, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v6

    invoke-virtual {v2, v5, v6}, Landroid/widget/ImageView;->measure(II)V

    .line 77
    :cond_44
    iget-object v2, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

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

    move-result v2

    if-nez v2, :cond_6d

    .line 78
    iget-object v2, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

    invoke-static {v1, v3}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v3

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->getMeasuredHeight()I

    move-result v5

    invoke-static {v5, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v5

    invoke-virtual {v2, v3, v5}, Landroid/widget/TextView;->measure(II)V

    .line 79
    iget-object v2, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

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

    move-result v2

    sub-int v2, v0, v2

    const/high16 v3, 0x41000000    # 8.0f

    invoke-static {v3}, Lim/tpelyyftgw/messenger/AndroidUtilities;->dp(F)I

    move-result v3

    sub-int/2addr v2, v3

    .end local v1    # "width":I
    .local v2, "width":I
    goto :goto_6e

    .line 81
    .end local v2    # "width":I
    .restart local v1    # "width":I
    :cond_6d
    move v2, v0

    .line 83
    .end local v1    # "width":I
    .restart local v2    # "width":I
    :goto_6e
    iget-object v1, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->textView:Landroid/widget/TextView;

    invoke-static {v2, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v3

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->getMeasuredHeight()I

    move-result v5

    invoke-static {v5, v4}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result v4

    invoke-virtual {v1, v3, v4}, Landroid/widget/TextView;->measure(II)V

    .line 84
    return-void
.end method

.method public setCanDisable(Z)V
    .registers 2
    .param p1, "value"    # Z

    .line 91
    iput-boolean p1, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->canDisable:Z

    .line 92
    return-void
.end method

.method public setEnabled(Z)V
    .registers 6
    .param p1, "value"    # Z

    .line 164
    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->setEnabled(Z)V

    .line 165
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->textView:Landroid/widget/TextView;

    const/high16 v1, 0x3f000000    # 0.5f

    const/high16 v2, 0x3f800000    # 1.0f

    if-nez p1, :cond_13

    iget-boolean v3, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->canDisable:Z

    if-nez v3, :cond_10

    goto :goto_13

    :cond_10
    const/high16 v3, 0x3f000000    # 0.5f

    goto :goto_15

    :cond_13
    :goto_13
    const/high16 v3, 0x3f800000    # 1.0f

    :goto_15
    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setAlpha(F)V

    .line 166
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

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

    move-result v0

    if-nez v0, :cond_31

    .line 167
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

    if-nez p1, :cond_2c

    iget-boolean v3, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->canDisable:Z

    if-nez v3, :cond_29

    goto :goto_2c

    :cond_29
    const/high16 v3, 0x3f000000    # 0.5f

    goto :goto_2e

    :cond_2c
    :goto_2c
    const/high16 v3, 0x3f800000    # 1.0f

    :goto_2e
    invoke-virtual {v0, v3}, Landroid/widget/TextView;->setAlpha(F)V

    .line 169
    :cond_31
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueImageView:Landroid/widget/ImageView;

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

    move-result v0

    if-nez v0, :cond_46

    .line 170
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueImageView:Landroid/widget/ImageView;

    if-nez p1, :cond_41

    iget-boolean v3, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->canDisable:Z

    if-nez v3, :cond_43

    :cond_41
    const/high16 v1, 0x3f800000    # 1.0f

    :cond_43
    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setAlpha(F)V

    .line 172
    :cond_46
    return-void
.end method

.method public setEnabled(ZLjava/util/ArrayList;)V
    .registers 11
    .param p1, "value"    # Z
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(Z",
            "Ljava/util/ArrayList<",
            "Landroid/animation/Animator;",
            ">;)V"
        }
    .end annotation

    .line 142
    .local p2, "animators":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/animation/Animator;>;"
    invoke-virtual {p0, p1}, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->setEnabled(Z)V

    .line 143
    const/high16 v0, 0x3f800000    # 1.0f

    const/high16 v1, 0x3f000000    # 0.5f

    if-eqz p2, :cond_58

    .line 144
    iget-object v2, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->textView:Landroid/widget/TextView;

    const/4 v3, 0x1

    new-array v4, v3, [F

    if-eqz p1, :cond_13

    const/high16 v5, 0x3f800000    # 1.0f

    goto :goto_15

    :cond_13
    const/high16 v5, 0x3f000000    # 0.5f

    :goto_15
    const/4 v6, 0x0

    aput v5, v4, v6

    const-string v5, "alpha"

    invoke-static {v2, v5, v4}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v2

    invoke-virtual {p2, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 145
    iget-object v2, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

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

    move-result v2

    if-nez v2, :cond_3d

    .line 146
    iget-object v2, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

    new-array v4, v3, [F

    if-eqz p1, :cond_32

    const/high16 v7, 0x3f800000    # 1.0f

    goto :goto_34

    :cond_32
    const/high16 v7, 0x3f000000    # 0.5f

    :goto_34
    aput v7, v4, v6

    invoke-static {v2, v5, v4}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v2

    invoke-virtual {p2, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 148
    :cond_3d
    iget-object v2, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueImageView:Landroid/widget/ImageView;

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

    move-result v2

    if-nez v2, :cond_8a

    .line 149
    iget-object v2, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueImageView:Landroid/widget/ImageView;

    new-array v3, v3, [F

    if-eqz p1, :cond_4c

    goto :goto_4e

    :cond_4c
    const/high16 v0, 0x3f000000    # 0.5f

    :goto_4e
    aput v0, v3, v6

    invoke-static {v2, v5, v3}, Landroid/animation/ObjectAnimator;->ofFloat(Ljava/lang/Object;Ljava/lang/String;[F)Landroid/animation/ObjectAnimator;

    move-result-object v0

    invoke-virtual {p2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_8a

    .line 152
    :cond_58
    iget-object v2, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->textView:Landroid/widget/TextView;

    if-eqz p1, :cond_5f

    const/high16 v3, 0x3f800000    # 1.0f

    goto :goto_61

    :cond_5f
    const/high16 v3, 0x3f000000    # 0.5f

    :goto_61
    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setAlpha(F)V

    .line 153
    iget-object v2, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

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

    move-result v2

    if-nez v2, :cond_78

    .line 154
    iget-object v2, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

    if-eqz p1, :cond_73

    const/high16 v3, 0x3f800000    # 1.0f

    goto :goto_75

    :cond_73
    const/high16 v3, 0x3f000000    # 0.5f

    :goto_75
    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setAlpha(F)V

    .line 156
    :cond_78
    iget-object v2, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueImageView:Landroid/widget/ImageView;

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

    move-result v2

    if-nez v2, :cond_8a

    .line 157
    iget-object v2, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueImageView:Landroid/widget/ImageView;

    if-eqz p1, :cond_85

    goto :goto_87

    :cond_85
    const/high16 v0, 0x3f000000    # 0.5f

    :goto_87
    invoke-virtual {v2, v0}, Landroid/widget/ImageView;->setAlpha(F)V

    .line 160
    :cond_8a
    :goto_8a
    return-void
.end method

.method public setText(Ljava/lang/String;Z)V
    .registers 5
    .param p1, "text"    # Ljava/lang/String;
    .param p2, "divider"    # Z

    .line 107
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->textView:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 108
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

    const/4 v1, 0x4

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

    .line 109
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueImageView:Landroid/widget/ImageView;

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

    .line 110
    iput-boolean p2, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->needDivider:Z

    .line 111
    xor-int/lit8 v0, p2, 0x1

    invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->setWillNotDraw(Z)V

    .line 112
    return-void
.end method

.method public setTextAndIcon(Ljava/lang/String;IZ)V
    .registers 6
    .param p1, "text"    # Ljava/lang/String;
    .param p2, "resId"    # I
    .param p3, "divider"    # Z

    .line 129
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->textView:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 130
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

    const/4 v1, 0x4

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

    .line 131
    if-eqz p2, :cond_19

    .line 132
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueImageView:Landroid/widget/ImageView;

    const/4 v1, 0x0

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

    .line 133
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueImageView:Landroid/widget/ImageView;

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

    goto :goto_1e

    .line 135
    :cond_19
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueImageView:Landroid/widget/ImageView;

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

    .line 137
    :goto_1e
    iput-boolean p3, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->needDivider:Z

    .line 138
    xor-int/lit8 v0, p3, 0x1

    invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->setWillNotDraw(Z)V

    .line 139
    return-void
.end method

.method public setTextAndValue(Ljava/lang/String;Ljava/lang/String;Z)V
    .registers 6
    .param p1, "text"    # Ljava/lang/String;
    .param p2, "value"    # Ljava/lang/String;
    .param p3, "divider"    # Z

    .line 115
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->textView:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 116
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueImageView:Landroid/widget/ImageView;

    const/4 v1, 0x4

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

    .line 117
    if-eqz p2, :cond_19

    .line 118
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

    invoke-virtual {v0, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 119
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

    const/4 v1, 0x0

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

    goto :goto_1e

    .line 121
    :cond_19
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

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

    .line 123
    :goto_1e
    iput-boolean p3, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->needDivider:Z

    .line 124
    xor-int/lit8 v0, p3, 0x1

    invoke-virtual {p0, v0}, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->setWillNotDraw(Z)V

    .line 125
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->requestLayout()V

    .line 126
    return-void
.end method

.method public setTextColor(I)V
    .registers 3
    .param p1, "color"    # I

    .line 99
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->textView:Landroid/widget/TextView;

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

    .line 100
    return-void
.end method

.method public setTextValueColor(I)V
    .registers 3
    .param p1, "color"    # I

    .line 103
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/TextSettingsCell;->valueTextView:Landroid/widget/TextView;

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

    .line 104
    return-void
.end method