.class public Landroidx/appcompat/widget/AppCompatRadioButton; .super Landroid/widget/RadioButton; .source "AppCompatRadioButton.java" # interfaces .implements Landroidx/core/widget/TintableCompoundButton; .implements Landroidx/core/view/TintableBackgroundView; .implements Landroidx/appcompat/widget/EmojiCompatConfigurationView; .implements Landroidx/core/widget/TintableCompoundDrawablesView; # instance fields .field private mAppCompatEmojiTextHelper:Landroidx/appcompat/widget/AppCompatEmojiTextHelper; .field private final mBackgroundTintHelper:Landroidx/appcompat/widget/AppCompatBackgroundHelper; .field private final mCompoundButtonHelper:Landroidx/appcompat/widget/AppCompatCompoundButtonHelper; .field private final mTextHelper:Landroidx/appcompat/widget/AppCompatTextHelper; # direct methods .method public constructor (Landroid/content/Context;)V .locals 1 const/4 v0, 0x0 .line 70 invoke-direct {p0, p1, v0}, Landroidx/appcompat/widget/AppCompatRadioButton;->(Landroid/content/Context;Landroid/util/AttributeSet;)V return-void .end method .method public constructor (Landroid/content/Context;Landroid/util/AttributeSet;)V .locals 1 .line 74 sget v0, Landroidx/appcompat/R$attr;->radioButtonStyle:I invoke-direct {p0, p1, p2, v0}, Landroidx/appcompat/widget/AppCompatRadioButton;->(Landroid/content/Context;Landroid/util/AttributeSet;I)V return-void .end method .method public constructor (Landroid/content/Context;Landroid/util/AttributeSet;I)V .locals 0 .line 78 invoke-static {p1}, Landroidx/appcompat/widget/TintContextWrapper;->wrap(Landroid/content/Context;)Landroid/content/Context; move-result-object p1 invoke-direct {p0, p1, p2, p3}, Landroid/widget/RadioButton;->(Landroid/content/Context;Landroid/util/AttributeSet;I)V .line 80 invoke-virtual {p0}, Landroidx/appcompat/widget/AppCompatRadioButton;->getContext()Landroid/content/Context; move-result-object p1 invoke-static {p0, p1}, Landroidx/appcompat/widget/ThemeUtils;->checkAppCompatTheme(Landroid/view/View;Landroid/content/Context;)V .line 82 new-instance p1, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper; invoke-direct {p1, p0}, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper;->(Landroid/widget/CompoundButton;)V iput-object p1, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mCompoundButtonHelper:Landroidx/appcompat/widget/AppCompatCompoundButtonHelper; .line 83 invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper;->loadFromAttributes(Landroid/util/AttributeSet;I)V .line 85 new-instance p1, Landroidx/appcompat/widget/AppCompatBackgroundHelper; invoke-direct {p1, p0}, Landroidx/appcompat/widget/AppCompatBackgroundHelper;->(Landroid/view/View;)V iput-object p1, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mBackgroundTintHelper:Landroidx/appcompat/widget/AppCompatBackgroundHelper; .line 86 invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/AppCompatBackgroundHelper;->loadFromAttributes(Landroid/util/AttributeSet;I)V .line 88 new-instance p1, Landroidx/appcompat/widget/AppCompatTextHelper; invoke-direct {p1, p0}, Landroidx/appcompat/widget/AppCompatTextHelper;->(Landroid/widget/TextView;)V iput-object p1, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mTextHelper:Landroidx/appcompat/widget/AppCompatTextHelper; .line 89 invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/AppCompatTextHelper;->loadFromAttributes(Landroid/util/AttributeSet;I)V .line 90 invoke-direct {p0}, Landroidx/appcompat/widget/AppCompatRadioButton;->getEmojiTextViewHelper()Landroidx/appcompat/widget/AppCompatEmojiTextHelper; move-result-object p1 .line 91 invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/AppCompatEmojiTextHelper;->loadFromAttributes(Landroid/util/AttributeSet;I)V return-void .end method .method private getEmojiTextViewHelper()Landroidx/appcompat/widget/AppCompatEmojiTextHelper; .locals 1 .line 99 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mAppCompatEmojiTextHelper:Landroidx/appcompat/widget/AppCompatEmojiTextHelper; if-nez v0, :cond_0 .line 100 new-instance v0, Landroidx/appcompat/widget/AppCompatEmojiTextHelper; invoke-direct {v0, p0}, Landroidx/appcompat/widget/AppCompatEmojiTextHelper;->(Landroid/widget/TextView;)V iput-object v0, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mAppCompatEmojiTextHelper:Landroidx/appcompat/widget/AppCompatEmojiTextHelper; .line 102 :cond_0 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mAppCompatEmojiTextHelper:Landroidx/appcompat/widget/AppCompatEmojiTextHelper; return-object v0 .end method # virtual methods .method protected drawableStateChanged()V .locals 1 .line 250 invoke-super {p0}, Landroid/widget/RadioButton;->drawableStateChanged()V .line 251 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mBackgroundTintHelper:Landroidx/appcompat/widget/AppCompatBackgroundHelper; if-eqz v0, :cond_0 .line 252 invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatBackgroundHelper;->applySupportBackgroundTint()V .line 254 :cond_0 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mTextHelper:Landroidx/appcompat/widget/AppCompatTextHelper; if-eqz v0, :cond_1 .line 255 invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatTextHelper;->applyCompoundDrawablesTints()V :cond_1 return-void .end method .method public getCompoundPaddingLeft()I .locals 2 .line 120 invoke-super {p0}, Landroid/widget/RadioButton;->getCompoundPaddingLeft()I move-result v0 .line 121 iget-object v1, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mCompoundButtonHelper:Landroidx/appcompat/widget/AppCompatCompoundButtonHelper; if-eqz v1, :cond_0 .line 122 invoke-virtual {v1, v0}, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper;->getCompoundPaddingLeft(I)I move-result v0 :cond_0 return v0 .end method .method public getSupportBackgroundTintList()Landroid/content/res/ColorStateList; .locals 1 .line 200 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mBackgroundTintHelper:Landroidx/appcompat/widget/AppCompatBackgroundHelper; if-eqz v0, :cond_0 .line 201 invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatBackgroundHelper;->getSupportBackgroundTintList()Landroid/content/res/ColorStateList; move-result-object v0 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 return-object v0 .end method .method public getSupportBackgroundTintMode()Landroid/graphics/PorterDuff$Mode; .locals 1 .line 228 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mBackgroundTintHelper:Landroidx/appcompat/widget/AppCompatBackgroundHelper; if-eqz v0, :cond_0 .line 229 invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatBackgroundHelper;->getSupportBackgroundTintMode()Landroid/graphics/PorterDuff$Mode; move-result-object v0 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 return-object v0 .end method .method public getSupportButtonTintList()Landroid/content/res/ColorStateList; .locals 1 .line 146 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mCompoundButtonHelper:Landroidx/appcompat/widget/AppCompatCompoundButtonHelper; if-eqz v0, :cond_0 .line 147 invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper;->getSupportButtonTintList()Landroid/content/res/ColorStateList; move-result-object v0 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 return-object v0 .end method .method public getSupportButtonTintMode()Landroid/graphics/PorterDuff$Mode; .locals 1 .line 171 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mCompoundButtonHelper:Landroidx/appcompat/widget/AppCompatCompoundButtonHelper; if-eqz v0, :cond_0 .line 172 invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper;->getSupportButtonTintMode()Landroid/graphics/PorterDuff$Mode; move-result-object v0 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 return-object v0 .end method .method public getSupportCompoundDrawablesTintList()Landroid/content/res/ColorStateList; .locals 1 .line 313 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mTextHelper:Landroidx/appcompat/widget/AppCompatTextHelper; invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatTextHelper;->getCompoundDrawableTintList()Landroid/content/res/ColorStateList; move-result-object v0 return-object v0 .end method .method public getSupportCompoundDrawablesTintMode()Landroid/graphics/PorterDuff$Mode; .locals 1 .line 356 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mTextHelper:Landroidx/appcompat/widget/AppCompatTextHelper; invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatTextHelper;->getCompoundDrawableTintMode()Landroid/graphics/PorterDuff$Mode; move-result-object v0 return-object v0 .end method .method public isEmojiCompatEnabled()Z .locals 1 .line 277 invoke-direct {p0}, Landroidx/appcompat/widget/AppCompatRadioButton;->getEmojiTextViewHelper()Landroidx/appcompat/widget/AppCompatEmojiTextHelper; move-result-object v0 invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatEmojiTextHelper;->isEnabled()Z move-result v0 return v0 .end method .method public setAllCaps(Z)V .locals 1 .line 266 invoke-super {p0, p1}, Landroid/widget/RadioButton;->setAllCaps(Z)V .line 267 invoke-direct {p0}, Landroidx/appcompat/widget/AppCompatRadioButton;->getEmojiTextViewHelper()Landroidx/appcompat/widget/AppCompatEmojiTextHelper; move-result-object v0 invoke-virtual {v0, p1}, Landroidx/appcompat/widget/AppCompatEmojiTextHelper;->setAllCaps(Z)V return-void .end method .method public setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V .locals 1 .line 234 invoke-super {p0, p1}, Landroid/widget/RadioButton;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V .line 235 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mBackgroundTintHelper:Landroidx/appcompat/widget/AppCompatBackgroundHelper; if-eqz v0, :cond_0 .line 236 invoke-virtual {v0, p1}, Landroidx/appcompat/widget/AppCompatBackgroundHelper;->onSetBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V :cond_0 return-void .end method .method public setBackgroundResource(I)V .locals 1 .line 242 invoke-super {p0, p1}, Landroid/widget/RadioButton;->setBackgroundResource(I)V .line 243 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mBackgroundTintHelper:Landroidx/appcompat/widget/AppCompatBackgroundHelper; if-eqz v0, :cond_0 .line 244 invoke-virtual {v0, p1}, Landroidx/appcompat/widget/AppCompatBackgroundHelper;->onSetBackgroundResource(I)V :cond_0 return-void .end method .method public setButtonDrawable(I)V .locals 1 .line 115 invoke-virtual {p0}, Landroidx/appcompat/widget/AppCompatRadioButton;->getContext()Landroid/content/Context; move-result-object v0 invoke-static {v0, p1}, Landroidx/appcompat/content/res/AppCompatResources;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable; move-result-object p1 invoke-virtual {p0, p1}, Landroidx/appcompat/widget/AppCompatRadioButton;->setButtonDrawable(Landroid/graphics/drawable/Drawable;)V return-void .end method .method public setButtonDrawable(Landroid/graphics/drawable/Drawable;)V .locals 0 .line 107 invoke-super {p0, p1}, Landroid/widget/RadioButton;->setButtonDrawable(Landroid/graphics/drawable/Drawable;)V .line 108 iget-object p1, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mCompoundButtonHelper:Landroidx/appcompat/widget/AppCompatCompoundButtonHelper; if-eqz p1, :cond_0 .line 109 invoke-virtual {p1}, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper;->onSetButtonDrawable()V :cond_0 return-void .end method .method public setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V .locals 0 .line 283 invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/RadioButton;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V .line 284 iget-object p1, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mTextHelper:Landroidx/appcompat/widget/AppCompatTextHelper; if-eqz p1, :cond_0 .line 285 invoke-virtual {p1}, Landroidx/appcompat/widget/AppCompatTextHelper;->onSetCompoundDrawables()V :cond_0 return-void .end method .method public setCompoundDrawablesRelative(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V .locals 0 .line 293 invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/RadioButton;->setCompoundDrawablesRelative(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V .line 294 iget-object p1, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mTextHelper:Landroidx/appcompat/widget/AppCompatTextHelper; if-eqz p1, :cond_0 .line 295 invoke-virtual {p1}, Landroidx/appcompat/widget/AppCompatTextHelper;->onSetCompoundDrawables()V :cond_0 return-void .end method .method public setEmojiCompatEnabled(Z)V .locals 1 .line 272 invoke-direct {p0}, Landroidx/appcompat/widget/AppCompatRadioButton;->getEmojiTextViewHelper()Landroidx/appcompat/widget/AppCompatEmojiTextHelper; move-result-object v0 invoke-virtual {v0, p1}, Landroidx/appcompat/widget/AppCompatEmojiTextHelper;->setEnabled(Z)V return-void .end method .method public setFilters([Landroid/text/InputFilter;)V .locals 1 .line 261 invoke-direct {p0}, Landroidx/appcompat/widget/AppCompatRadioButton;->getEmojiTextViewHelper()Landroidx/appcompat/widget/AppCompatEmojiTextHelper; move-result-object v0 invoke-virtual {v0, p1}, Landroidx/appcompat/widget/AppCompatEmojiTextHelper;->getFilters([Landroid/text/InputFilter;)[Landroid/text/InputFilter; move-result-object p1 invoke-super {p0, p1}, Landroid/widget/RadioButton;->setFilters([Landroid/text/InputFilter;)V return-void .end method .method public setSupportBackgroundTintList(Landroid/content/res/ColorStateList;)V .locals 1 .line 185 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mBackgroundTintHelper:Landroidx/appcompat/widget/AppCompatBackgroundHelper; if-eqz v0, :cond_0 .line 186 invoke-virtual {v0, p1}, Landroidx/appcompat/widget/AppCompatBackgroundHelper;->setSupportBackgroundTintList(Landroid/content/res/ColorStateList;)V :cond_0 return-void .end method .method public setSupportBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)V .locals 1 .line 213 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mBackgroundTintHelper:Landroidx/appcompat/widget/AppCompatBackgroundHelper; if-eqz v0, :cond_0 .line 214 invoke-virtual {v0, p1}, Landroidx/appcompat/widget/AppCompatBackgroundHelper;->setSupportBackgroundTintMode(Landroid/graphics/PorterDuff$Mode;)V :cond_0 return-void .end method .method public setSupportButtonTintList(Landroid/content/res/ColorStateList;)V .locals 1 .line 133 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mCompoundButtonHelper:Landroidx/appcompat/widget/AppCompatCompoundButtonHelper; if-eqz v0, :cond_0 .line 134 invoke-virtual {v0, p1}, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper;->setSupportButtonTintList(Landroid/content/res/ColorStateList;)V :cond_0 return-void .end method .method public setSupportButtonTintMode(Landroid/graphics/PorterDuff$Mode;)V .locals 1 .line 158 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mCompoundButtonHelper:Landroidx/appcompat/widget/AppCompatCompoundButtonHelper; if-eqz v0, :cond_0 .line 159 invoke-virtual {v0, p1}, Landroidx/appcompat/widget/AppCompatCompoundButtonHelper;->setSupportButtonTintMode(Landroid/graphics/PorterDuff$Mode;)V :cond_0 return-void .end method .method public setSupportCompoundDrawablesTintList(Landroid/content/res/ColorStateList;)V .locals 1 .line 336 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mTextHelper:Landroidx/appcompat/widget/AppCompatTextHelper; invoke-virtual {v0, p1}, Landroidx/appcompat/widget/AppCompatTextHelper;->setCompoundDrawableTintList(Landroid/content/res/ColorStateList;)V .line 337 iget-object p1, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mTextHelper:Landroidx/appcompat/widget/AppCompatTextHelper; invoke-virtual {p1}, Landroidx/appcompat/widget/AppCompatTextHelper;->applyCompoundDrawablesTints()V return-void .end method .method public setSupportCompoundDrawablesTintMode(Landroid/graphics/PorterDuff$Mode;)V .locals 1 .line 376 iget-object v0, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mTextHelper:Landroidx/appcompat/widget/AppCompatTextHelper; invoke-virtual {v0, p1}, Landroidx/appcompat/widget/AppCompatTextHelper;->setCompoundDrawableTintMode(Landroid/graphics/PorterDuff$Mode;)V .line 377 iget-object p1, p0, Landroidx/appcompat/widget/AppCompatRadioButton;->mTextHelper:Landroidx/appcompat/widget/AppCompatTextHelper; invoke-virtual {p1}, Landroidx/appcompat/widget/AppCompatTextHelper;->applyCompoundDrawablesTints()V return-void .end method