NotificationsCheckCell.smali

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


# instance fields
.field private checkBox:Lim/tpelyyftgw/ui/hviews/MrySwitch;

.field private currentHeight:I

.field private drawLine:Z

.field private isMultiline:Z

.field private needDivider:Z

.field private textView:Landroid/widget/TextView;

.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 4
    .param p1, "context"    # Landroid/content/Context;

    .line 30
    const/16 v0, 0x15

    const/16 v1, 0x46

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

    .line 31
    return-void
.end method

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

    .line 34
    move-object/from16 v0, p0

    move-object/from16 v1, p1

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

    .line 25
    const/4 v2, 0x1

    iput-boolean v2, v0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->drawLine:Z

    .line 35
    const/4 v3, 0x0

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

    .line 36
    move/from16 v4, p3

    iput v4, v0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->currentHeight:I

    .line 38
    new-instance v5, Landroid/widget/TextView;

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

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

    .line 39
    const-string/jumbo v6, "windowBackgroundWhiteBlackText"

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

    move-result v6

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

    .line 40
    iget-object v5, v0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->textView:Landroid/widget/TextView;

    const/high16 v6, 0x41600000    # 14.0f

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

    .line 41
    iget-object v5, v0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->textView:Landroid/widget/TextView;

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

    .line 42
    iget-object v5, v0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->textView:Landroid/widget/TextView;

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

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

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

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

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

    const/4 v7, 0x5

    const/4 v8, 0x3

    if-eqz v6, :cond_43

    const/4 v6, 0x5

    goto :goto_44

    :cond_43
    const/4 v6, 0x3

    :goto_44
    or-int/lit8 v6, v6, 0x10

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

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

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

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

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

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

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

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

    if-eqz v6, :cond_5c

    const/4 v6, 0x5

    goto :goto_5d

    :cond_5c
    const/4 v6, 0x3

    :goto_5d
    or-int/lit8 v11, v6, 0x30

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

    const/high16 v16, 0x42a00000    # 80.0f

    const/high16 v17, 0x41a80000    # 21.0f

    if-eqz v6, :cond_6a

    const/high16 v12, 0x42a00000    # 80.0f

    goto :goto_6c

    :cond_6a
    const/high16 v12, 0x41a80000    # 21.0f

    :goto_6c
    iget v6, v0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->currentHeight:I

    add-int/lit8 v6, v6, -0x46

    div-int/lit8 v6, v6, 0x2

    add-int/lit8 v6, v6, 0xd

    int-to-float v13, v6

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

    if-eqz v6, :cond_7c

    const/high16 v14, 0x41a80000    # 21.0f

    goto :goto_7e

    :cond_7c
    const/high16 v14, 0x42a00000    # 80.0f

    :goto_7e
    const/4 v15, 0x0

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

    move-result-object v6

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

    .line 48
    new-instance v5, Landroid/widget/TextView;

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

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

    .line 49
    const-string/jumbo v6, "windowBackgroundWhiteGrayText2"

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

    move-result v6

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

    .line 50
    iget-object v5, v0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->valueTextView:Landroid/widget/TextView;

    const/high16 v6, 0x41500000    # 13.0f

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

    .line 51
    iget-object v5, v0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->valueTextView:Landroid/widget/TextView;

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

    if-eqz v6, :cond_a6

    const/4 v6, 0x5

    goto :goto_a7

    :cond_a6
    const/4 v6, 0x3

    :goto_a7
    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setGravity(I)V

    .line 52
    iget-object v5, v0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->valueTextView:Landroid/widget/TextView;

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

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

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

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

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

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

    invoke-virtual {v5, v3, v3, v3, v3}, Landroid/widget/TextView;->setPadding(IIII)V

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

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

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

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

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

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

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

    if-eqz v5, :cond_d1

    const/4 v5, 0x5

    goto :goto_d2

    :cond_d1
    const/4 v5, 0x3

    :goto_d2
    or-int/lit8 v11, v5, 0x30

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

    if-eqz v5, :cond_db

    const/high16 v12, 0x42a00000    # 80.0f

    goto :goto_dd

    :cond_db
    const/high16 v12, 0x41a80000    # 21.0f

    :goto_dd
    iget v5, v0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->currentHeight:I

    add-int/lit8 v5, v5, -0x46

    div-int/lit8 v5, v5, 0x2

    add-int/lit8 v5, v5, 0x26

    int-to-float v13, v5

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

    if-eqz v5, :cond_ed

    const/high16 v14, 0x41a80000    # 21.0f

    goto :goto_f1

    :cond_ed
    const/high16 v17, 0x42c80000    # 100.0f

    const/high16 v14, 0x42c80000    # 100.0f

    :goto_f1
    const/4 v15, 0x0

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

    move-result-object v5

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

    .line 59
    new-instance v3, Lim/tpelyyftgw/ui/hviews/MrySwitch;

    invoke-direct {v3, v1}, Lim/tpelyyftgw/ui/hviews/MrySwitch;-><init>(Landroid/content/Context;)V

    iput-object v3, v0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->checkBox:Lim/tpelyyftgw/ui/hviews/MrySwitch;

    .line 60
    const-string/jumbo v5, "windowBackgroundWhite"

    const-string/jumbo v6, "switchTrack"

    const-string/jumbo v9, "switchTrackChecked"

    invoke-virtual {v3, v6, v9, v5, v5}, Lim/tpelyyftgw/ui/hviews/MrySwitch;->setColors(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 61
    invoke-virtual/range {p0 .. p0}, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    const v5, 0x7f070114

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

    move-result v3

    .line 62
    .local v3, "iWidth":I
    iget-object v5, v0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->checkBox:Lim/tpelyyftgw/ui/hviews/MrySwitch;

    const/high16 v6, 0x42200000    # 40.0f

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

    move-result v10

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

    if-eqz v6, :cond_124

    const/4 v7, 0x3

    :cond_124
    or-int/lit8 v11, v7, 0x10

    const/high16 v6, 0x41900000    # 18.0f

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

    move-result v12

    const/4 v13, 0x0

    const/high16 v6, 0x42740000    # 61.0f

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

    move-result v6

    sub-int v14, v6, v3

    const/4 v15, 0x0

    move v9, v3

    invoke-static/range {v9 .. v15}, Lim/tpelyyftgw/ui/components/LayoutHelper;->createFrameByPx(IIIIIII)Landroid/widget/FrameLayout$LayoutParams;

    move-result-object v6

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

    .line 63
    iget-object v5, v0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->checkBox:Lim/tpelyyftgw/ui/hviews/MrySwitch;

    invoke-virtual {v5, v2}, Lim/tpelyyftgw/ui/hviews/MrySwitch;->setFocusable(Z)V

    .line 64
    return-void
.end method


# virtual methods
.method public isChecked()Z
    .registers 2

    .line 130
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->checkBox:Lim/tpelyyftgw/ui/hviews/MrySwitch;

    invoke-virtual {v0}, Lim/tpelyyftgw/ui/hviews/MrySwitch;->isChecked()Z

    move-result v0

    return v0
.end method

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

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

    if-eqz v0, :cond_37

    .line 136
    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/NotificationsCheckCell;->getMeasuredHeight()I

    move-result v0

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

    int-to-float v4, v0

    invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->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/NotificationsCheckCell;->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 138
    :cond_37
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->drawLine:Z

    if-eqz v0, :cond_6f

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

    const/high16 v1, 0x42980000    # 76.0f

    if-eqz v0, :cond_46

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

    move-result v0

    goto :goto_51

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

    move-result v0

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

    move-result v1

    sub-int/2addr v0, v1

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

    .line 140
    .local v0, "x":I
    :goto_51
    invoke-virtual {p0}, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->getMeasuredHeight()I

    move-result v1

    const/high16 v2, 0x41b00000    # 22.0f

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

    move-result v3

    sub-int/2addr v1, v3

    div-int/lit8 v1, v1, 0x2

    .line 141
    .local v1, "y":I
    int-to-float v4, v0

    int-to-float v5, v1

    add-int/lit8 v3, v0, 0x2

    int-to-float v6, v3

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

    move-result v2

    add-int/2addr v2, v1

    int-to-float v7, v2

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

    move-object v3, p1

    invoke-virtual/range {v3 .. v8}, Landroid/graphics/Canvas;->drawRect(FFFFLandroid/graphics/Paint;)V

    .line 143
    .end local v0    # "x":I
    .end local v1    # "y":I
    :cond_6f
    return-void
.end method

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

    .line 68
    iget-boolean v0, p0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->isMultiline:Z

    const/high16 v1, 0x40000000    # 2.0f

    if-eqz v0, :cond_17

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

    move-result v0

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

    move-result v0

    const/4 v1, 0x0

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

    move-result v1

    invoke-super {p0, v0, v1}, Landroid/widget/FrameLayout;->onMeasure(II)V

    goto :goto_2d

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

    move-result v0

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

    move-result v0

    iget v2, p0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->currentHeight:I

    int-to-float v2, v2

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

    move-result v2

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

    move-result v1

    invoke-super {p0, v0, v1}, Landroid/widget/FrameLayout;->onMeasure(II)V

    .line 73
    :goto_2d
    return-void
.end method

.method public setChecked(Z)V
    .registers 4
    .param p1, "checked"    # Z

    .line 122
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->checkBox:Lim/tpelyyftgw/ui/hviews/MrySwitch;

    const/4 v1, 0x1

    invoke-virtual {v0, p1, v1}, Lim/tpelyyftgw/ui/hviews/MrySwitch;->setChecked(ZZ)V

    .line 123
    return-void
.end method

.method public setChecked(ZI)V
    .registers 5
    .param p1, "checked"    # Z
    .param p2, "iconType"    # I

    .line 126
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->checkBox:Lim/tpelyyftgw/ui/hviews/MrySwitch;

    const/4 v1, 0x1

    invoke-virtual {v0, p1, p2, v1}, Lim/tpelyyftgw/ui/hviews/MrySwitch;->setChecked(ZIZ)V

    .line 127
    return-void
.end method

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

    .line 118
    iput-boolean p1, p0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->drawLine:Z

    .line 119
    return-void
.end method

.method public setTextAndValueAndCheck(Ljava/lang/String;Ljava/lang/CharSequence;ZIZ)V
    .registers 13
    .param p1, "text"    # Ljava/lang/String;
    .param p2, "value"    # Ljava/lang/CharSequence;
    .param p3, "checked"    # Z
    .param p4, "iconType"    # I
    .param p5, "divider"    # Z

    .line 80
    const/4 v5, 0x0

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move v3, p3

    move v4, p4

    move v6, p5

    invoke-virtual/range {v0 .. v6}, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->setTextAndValueAndCheck(Ljava/lang/String;Ljava/lang/CharSequence;ZIZZ)V

    .line 81
    return-void
.end method

.method public setTextAndValueAndCheck(Ljava/lang/String;Ljava/lang/CharSequence;ZIZZ)V
    .registers 10
    .param p1, "text"    # Ljava/lang/String;
    .param p2, "value"    # Ljava/lang/CharSequence;
    .param p3, "checked"    # Z
    .param p4, "iconType"    # I
    .param p5, "multiline"    # Z
    .param p6, "divider"    # Z

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

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

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

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

    .line 86
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->checkBox:Lim/tpelyyftgw/ui/hviews/MrySwitch;

    const/4 v1, 0x0

    invoke-virtual {v0, p3, p4, v1}, Lim/tpelyyftgw/ui/hviews/MrySwitch;->setChecked(ZIZ)V

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

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

    .line 88
    iput-boolean p6, p0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->needDivider:Z

    .line 89
    iput-boolean p5, p0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->isMultiline:Z

    .line 91
    if-eqz p5, :cond_3c

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

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

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

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

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

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

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

    const/4 v2, 0x0

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

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

    const/high16 v2, 0x41600000    # 14.0f

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

    move-result v2

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

    goto :goto_58

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

    const/4 v2, 0x1

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

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

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

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

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

    .line 101
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->valueTextView: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 102
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->valueTextView:Landroid/widget/TextView;

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

    .line 104
    :goto_58
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->checkBox:Lim/tpelyyftgw/ui/hviews/MrySwitch;

    invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/hviews/MrySwitch;->setContentDescription(Ljava/lang/CharSequence;)V

    .line 105
    return-void
.end method

.method public setTextAndValueAndCheck(Ljava/lang/String;Ljava/lang/CharSequence;ZZ)V
    .registers 12
    .param p1, "text"    # Ljava/lang/String;
    .param p2, "value"    # Ljava/lang/CharSequence;
    .param p3, "checked"    # Z
    .param p4, "divider"    # Z

    .line 76
    const/4 v4, 0x0

    const/4 v5, 0x0

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move v3, p3

    move v6, p4

    invoke-virtual/range {v0 .. v6}, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->setTextAndValueAndCheck(Ljava/lang/String;Ljava/lang/CharSequence;ZIZZ)V

    .line 77
    return-void
.end method

.method public setTextAndValueAndCheck(Ljava/lang/String;ZZ)V
    .registers 7
    .param p1, "text"    # Ljava/lang/String;
    .param p2, "checked"    # Z
    .param p3, "divider"    # Z

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

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

    .line 109
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->checkBox:Lim/tpelyyftgw/ui/hviews/MrySwitch;

    const/4 v1, 0x0

    invoke-virtual {v0, p2, v1, v1}, Lim/tpelyyftgw/ui/hviews/MrySwitch;->setChecked(ZIZ)V

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

    const/16 v2, 0x8

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

    .line 111
    iput-boolean p3, p0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->needDivider:Z

    .line 112
    iput-boolean v1, p0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->isMultiline:Z

    .line 114
    iget-object v0, p0, Lim/tpelyyftgw/ui/cells/NotificationsCheckCell;->checkBox:Lim/tpelyyftgw/ui/hviews/MrySwitch;

    invoke-virtual {v0, p1}, Lim/tpelyyftgw/ui/hviews/MrySwitch;->setContentDescription(Ljava/lang/CharSequence;)V

    .line 115
    return-void
.end method