.class public Lg7/a;
.super Landroidx/appcompat/widget/w;
.source ""


# static fields
.field public static final x:[[I


# instance fields
.field public v:Landroid/content/res/ColorStateList;

.field public w:Z


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

    const/4 v0, 0x4

    new-array v0, v0, [[I

    const/4 v1, 0x2

    new-array v2, v1, [I

    fill-array-data v2, :array_26

    const/4 v3, 0x0

    aput-object v2, v0, v3

    new-array v2, v1, [I

    fill-array-data v2, :array_2e

    const/4 v3, 0x1

    aput-object v2, v0, v3

    new-array v2, v1, [I

    fill-array-data v2, :array_36

    aput-object v2, v0, v1

    new-array v1, v1, [I

    fill-array-data v1, :array_3e

    const/4 v2, 0x3

    aput-object v1, v0, v2

    sput-object v0, Lg7/a;->x:[[I

    return-void

    :array_26
    .array-data 4
        0x101009e
        0x10100a0
    .end array-data

    :array_2e
    .array-data 4
        0x101009e
        -0x10100a0
    .end array-data

    :array_36
    .array-data 4
        -0x101009e
        0x10100a0
    .end array-data

    :array_3e
    .array-data 4
        -0x101009e
        -0x10100a0
    .end array-data
.end method

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

    const v0, 0x7f120288

    const v1, 0x7f0402e2

    .line 1
    invoke-static {p1, p2, v1, v0}, Lo7/a;->a(Landroid/content/Context;Landroid/util/AttributeSet;II)Landroid/content/Context;

    move-result-object p1

    invoke-direct {p0, p1, p2, v1}, Landroidx/appcompat/widget/w;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    invoke-virtual {p0}, Landroid/widget/RadioButton;->getContext()Landroid/content/Context;

    move-result-object p1

    sget-object v4, Lo6/a;->q:[I

    const/4 v0, 0x0

    new-array v7, v0, [I

    const v6, 0x7f120288

    const v5, 0x7f0402e2

    move-object v2, p1

    move-object v3, p2

    invoke-static/range {v2 .. v7}, Lf7/k;->d(Landroid/content/Context;Landroid/util/AttributeSet;[III[I)Landroid/content/res/TypedArray;

    move-result-object p2

    invoke-virtual {p2, v0}, Landroid/content/res/TypedArray;->hasValue(I)Z

    move-result v1

    if-eqz v1, :cond_2f

    invoke-static {p1, p2, v0}, Lh7/c;->a(Landroid/content/Context;Landroid/content/res/TypedArray;I)Landroid/content/res/ColorStateList;

    move-result-object p1

    .line 2
    invoke-virtual {p0, p1}, Landroid/widget/CompoundButton;->setButtonTintList(Landroid/content/res/ColorStateList;)V

    :cond_2f
    const/4 p1, 0x1

    .line 3
    invoke-virtual {p2, p1, v0}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

    move-result p1

    iput-boolean p1, p0, Lg7/a;->w:Z

    invoke-virtual {p2}, Landroid/content/res/TypedArray;->recycle()V

    return-void
.end method

.method private getMaterialThemeColorsTintList()Landroid/content/res/ColorStateList;
    .registers 8

    iget-object v0, p0, Lg7/a;->v:Landroid/content/res/ColorStateList;

    if-nez v0, :cond_49

    const v0, 0x7f0400d7

    invoke-static {p0, v0}, Le/j;->b(Landroid/view/View;I)I

    move-result v0

    const v1, 0x7f0400e0

    invoke-static {p0, v1}, Le/j;->b(Landroid/view/View;I)I

    move-result v1

    const v2, 0x7f0400e8

    invoke-static {p0, v2}, Le/j;->b(Landroid/view/View;I)I

    move-result v2

    sget-object v3, Lg7/a;->x:[[I

    array-length v4, v3

    new-array v4, v4, [I

    const/4 v5, 0x0

    const/high16 v6, 0x3f800000    # 1.0f

    invoke-static {v2, v0, v6}, Le/j;->e(IIF)I

    move-result v0

    aput v0, v4, v5

    const/4 v0, 0x1

    const v5, 0x3f0a3d71    # 0.54f

    invoke-static {v2, v1, v5}, Le/j;->e(IIF)I

    move-result v5

    aput v5, v4, v0

    const/4 v0, 0x2

    const v5, 0x3ec28f5c    # 0.38f

    invoke-static {v2, v1, v5}, Le/j;->e(IIF)I

    move-result v6

    aput v6, v4, v0

    const/4 v0, 0x3

    invoke-static {v2, v1, v5}, Le/j;->e(IIF)I

    move-result v1

    aput v1, v4, v0

    new-instance v0, Landroid/content/res/ColorStateList;

    invoke-direct {v0, v3, v4}, Landroid/content/res/ColorStateList;-><init>([[I[I)V

    iput-object v0, p0, Lg7/a;->v:Landroid/content/res/ColorStateList;

    :cond_49
    iget-object v0, p0, Lg7/a;->v:Landroid/content/res/ColorStateList;

    return-object v0
.end method


# virtual methods
.method public onAttachedToWindow()V
    .registers 2

    invoke-super {p0}, Landroid/widget/TextView;->onAttachedToWindow()V

    iget-boolean v0, p0, Lg7/a;->w:Z

    if-eqz v0, :cond_11

    .line 1
    invoke-virtual {p0}, Landroid/widget/CompoundButton;->getButtonTintList()Landroid/content/res/ColorStateList;

    move-result-object v0

    if-nez v0, :cond_11

    const/4 v0, 0x1

    .line 2
    invoke-virtual {p0, v0}, Lg7/a;->setUseMaterialThemeColors(Z)V

    :cond_11
    return-void
.end method

.method public setUseMaterialThemeColors(Z)V
    .registers 2

    iput-boolean p1, p0, Lg7/a;->w:Z

    if-eqz p1, :cond_c

    invoke-direct {p0}, Lg7/a;->getMaterialThemeColorsTintList()Landroid/content/res/ColorStateList;

    move-result-object p1

    .line 1
    :goto_8
    invoke-virtual {p0, p1}, Landroid/widget/CompoundButton;->setButtonTintList(Landroid/content/res/ColorStateList;)V

    goto :goto_e

    :cond_c
    const/4 p1, 0x0

    goto :goto_8

    :goto_e
    return-void
.end method
