AppCompatCheckBox.smali
.class public Landroidx/appcompat/widget/AppCompatCheckBox;
.super Landroid/widget/CheckBox;
.source "SourceFile"
# instance fields
.field private final mBackgroundTintHelper:Landroidx/appcompat/widget/d;
.field private final mCompoundButtonHelper:Landroidx/appcompat/widget/f;
.field private final mTextHelper:Landroidx/appcompat/widget/s;
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.registers 3
const/4 v0, 0x0
.line 1
invoke-direct {p0, p1, v0}, Landroidx/appcompat/widget/AppCompatCheckBox;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.registers 4
const v0, 0x7f040111
.line 2
invoke-direct {p0, p1, p2, v0}, Landroidx/appcompat/widget/AppCompatCheckBox;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.registers 4
.line 3
invoke-static {p1}, Landroidx/appcompat/widget/n0;->a(Landroid/content/Context;)Landroid/content/Context;
invoke-direct {p0, p1, p2, p3}, Landroid/widget/CheckBox;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.line 4
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object p1
invoke-static {p0, p1}, Landroidx/appcompat/widget/l0;->a(Landroid/view/View;Landroid/content/Context;)V
.line 5
new-instance p1, Landroidx/appcompat/widget/f;
invoke-direct {p1, p0}, Landroidx/appcompat/widget/f;-><init>(Landroid/widget/CompoundButton;)V
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatCheckBox;->mCompoundButtonHelper:Landroidx/appcompat/widget/f;
.line 6
invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/f;->b(Landroid/util/AttributeSet;I)V
.line 7
new-instance p1, Landroidx/appcompat/widget/d;
invoke-direct {p1, p0}, Landroidx/appcompat/widget/d;-><init>(Landroid/view/View;)V
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatCheckBox;->mBackgroundTintHelper:Landroidx/appcompat/widget/d;
.line 8
invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/d;->d(Landroid/util/AttributeSet;I)V
.line 9
new-instance p1, Landroidx/appcompat/widget/s;
invoke-direct {p1, p0}, Landroidx/appcompat/widget/s;-><init>(Landroid/widget/TextView;)V
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatCheckBox;->mTextHelper:Landroidx/appcompat/widget/s;
.line 10
invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/s;->f(Landroid/util/AttributeSet;I)V
return-void
.end method
# virtual methods
.method public drawableStateChanged()V
.registers 2
.line 1
invoke-super {p0}, Landroid/widget/CompoundButton;->drawableStateChanged()V
.line 2
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatCheckBox;->mBackgroundTintHelper:Landroidx/appcompat/widget/d;
if-eqz v0, :cond_a
.line 3
invoke-virtual {v0}, Landroidx/appcompat/widget/d;->a()V
.line 4
:cond_a
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatCheckBox;->mTextHelper:Landroidx/appcompat/widget/s;
if-eqz v0, :cond_11
.line 5
invoke-virtual {v0}, Landroidx/appcompat/widget/s;->b()V
:cond_11
return-void
.end method
.method public getCompoundPaddingLeft()I
.registers 3
.line 1
invoke-super {p0}, Landroid/widget/CompoundButton;->getCompoundPaddingLeft()I
move-result v0
.line 2
iget-object v1, p0, Landroidx/appcompat/widget/AppCompatCheckBox;->mCompoundButtonHelper:Landroidx/appcompat/widget/f;
if-eqz v1, :cond_b
.line 3
invoke-static {v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
:cond_b
return v0
.end method
.method public getSupportBackgroundTintList()Landroid/content/res/ColorStateList;
.registers 2
.line 1
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatCheckBox;->mBackgroundTintHelper:Landroidx/appcompat/widget/d;
if-eqz v0, :cond_9
.line 2
invoke-virtual {v0}, Landroidx/appcompat/widget/d;->b()Landroid/content/res/ColorStateList;
move-result-object v0
goto :goto_a
:cond_9
const/4 v0, 0x0
:goto_a
return-object v0
.end method
.method public getSupportBackgroundTintMode()Landroid/graphics/PorterDuff$Mode;
.registers 2
.line 1
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatCheckBox;->mBackgroundTintHelper:Landroidx/appcompat/widget/d;
if-eqz v0, :cond_9
.line 2
invoke-virtual {v0}, Landroidx/appcompat/widget/d;->c()Landroid/graphics/PorterDuff$Mode;
move-result-object v0
goto :goto_a
:cond_9
const/4 v0, 0x0
:goto_a
return-object v0
.end method
.method public getSupportButtonTintList()Landroid/content/res/ColorStateList;
.registers 2
.line 1
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatCheckBox;->mCompoundButtonHelper:Landroidx/appcompat/widget/f;
if-eqz v0, :cond_7
.line 2
iget-object v0, v0, Landroidx/appcompat/widget/f;->b:Landroid/content/res/ColorStateList;
goto :goto_8
:cond_7
const/4 v0, 0x0
:goto_8
return-object v0
.end method
.method public getSupportButtonTintMode()Landroid/graphics/PorterDuff$Mode;
.registers 2
.line 1
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatCheckBox;->mCompoundButtonHelper:Landroidx/appcompat/widget/f;
if-eqz v0, :cond_7
.line 2
iget-object v0, v0, Landroidx/appcompat/widget/f;->c:Landroid/graphics/PorterDuff$Mode;
goto :goto_8
:cond_7
const/4 v0, 0x0
:goto_8
return-object v0
.end method
.method public setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.registers 2
.line 1
invoke-super {p0, p1}, Landroid/view/View;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.line 2
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatCheckBox;->mBackgroundTintHelper:Landroidx/appcompat/widget/d;
if-eqz p1, :cond_a
.line 3
invoke-virtual {p1}, Landroidx/appcompat/widget/d;->e()V
:cond_a
return-void
.end method
.method public setBackgroundResource(I)V
.registers 3
.line 1
invoke-super {p0, p1}, Landroid/view/View;->setBackgroundResource(I)V
.line 2
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatCheckBox;->mBackgroundTintHelper:Landroidx/appcompat/widget/d;
if-eqz v0, :cond_a
.line 3
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/d;->f(I)V
:cond_a
return-void
.end method
.method public setButtonDrawable(I)V
.registers 3
.line 7
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0, p1}, Landroidx/appcompat/content/res/a;->b(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
move-result-object p1
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/AppCompatCheckBox;->setButtonDrawable(Landroid/graphics/drawable/Drawable;)V
return-void
.end method
.method public setButtonDrawable(Landroid/graphics/drawable/Drawable;)V
.registers 3
.line 1
invoke-super {p0, p1}, Landroid/widget/CompoundButton;->setButtonDrawable(Landroid/graphics/drawable/Drawable;)V
.line 2
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatCheckBox;->mCompoundButtonHelper:Landroidx/appcompat/widget/f;
if-eqz p1, :cond_15
.line 3
iget-boolean v0, p1, Landroidx/appcompat/widget/f;->f:Z
if-eqz v0, :cond_f
const/4 v0, 0x0
.line 4
iput-boolean v0, p1, Landroidx/appcompat/widget/f;->f:Z
goto :goto_15
:cond_f
const/4 v0, 0x1
.line 5
iput-boolean v0, p1, Landroidx/appcompat/widget/f;->f:Z
.line 6
invoke-virtual {p1}, Landroidx/appcompat/widget/f;->a()V
:cond_15
:goto_15
return-void
.end method
.method public setSupportBackgroundTintList(Landroid/content/res/ColorStateList;)V
.registers 3
.line 1
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatCheckBox;->mBackgroundTintHelper:Landroidx/appcompat/widget/d;
if-eqz v0, :cond_7
.line 2
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/d;->h(Landroid/content/res/ColorStateList;)V
:cond_7
return-void
.end method
.method public setSupportBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)V
.registers 3
.line 1
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatCheckBox;->mBackgroundTintHelper:Landroidx/appcompat/widget/d;
if-eqz v0, :cond_7
.line 2
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/d;->i(Landroid/graphics/PorterDuff$Mode;)V
:cond_7
return-void
.end method
.method public setSupportButtonTintList(Landroid/content/res/ColorStateList;)V
.registers 3
.line 1
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatCheckBox;->mCompoundButtonHelper:Landroidx/appcompat/widget/f;
if-eqz v0, :cond_c
.line 2
iput-object p1, v0, Landroidx/appcompat/widget/f;->b:Landroid/content/res/ColorStateList;
const/4 p1, 0x1
.line 3
iput-boolean p1, v0, Landroidx/appcompat/widget/f;->d:Z
.line 4
invoke-virtual {v0}, Landroidx/appcompat/widget/f;->a()V
:cond_c
return-void
.end method
.method public setSupportButtonTintMode(Landroid/graphics/PorterDuff$Mode;)V
.registers 3
.line 1
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatCheckBox;->mCompoundButtonHelper:Landroidx/appcompat/widget/f;
if-eqz v0, :cond_c
.line 2
iput-object p1, v0, Landroidx/appcompat/widget/f;->c:Landroid/graphics/PorterDuff$Mode;
const/4 p1, 0x1
.line 3
iput-boolean p1, v0, Landroidx/appcompat/widget/f;->e:Z
.line 4
invoke-virtual {v0}, Landroidx/appcompat/widget/f;->a()V
:cond_c
return-void
.end method