AppCompatImageButton.smali
.class public Landroidx/appcompat/widget/AppCompatImageButton;
.super Landroid/widget/ImageButton;
.source "AppCompatImageButton.java"
# interfaces
.implements Landroidx/core/view/w;
.implements Landroidx/core/widget/o;
# instance fields
.field private final mBackgroundTintHelper:Landroidx/appcompat/widget/o;
.field private final mImageHelper:Landroidx/appcompat/widget/t;
# 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/AppCompatImageButton;-><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
.line 2
sget v0, Landroidx/appcompat/R$attr;->imageButtonStyle:I
invoke-direct {p0, p1, p2, v0}, Landroidx/appcompat/widget/AppCompatImageButton;-><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/ga;->a(Landroid/content/Context;)Landroid/content/Context;
move-result-object p1
invoke-direct {p0, p1, p2, p3}, Landroid/widget/ImageButton;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.line 4
invoke-virtual {p0}, Landroid/widget/ImageButton;->getContext()Landroid/content/Context;
move-result-object p1
invoke-static {p0, p1}, Landroidx/appcompat/widget/ea;->a(Landroid/view/View;Landroid/content/Context;)V
.line 5
new-instance p1, Landroidx/appcompat/widget/o;
invoke-direct {p1, p0}, Landroidx/appcompat/widget/o;-><init>(Landroid/view/View;)V
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatImageButton;->mBackgroundTintHelper:Landroidx/appcompat/widget/o;
.line 6
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatImageButton;->mBackgroundTintHelper:Landroidx/appcompat/widget/o;
invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/o;->a(Landroid/util/AttributeSet;I)V
.line 7
new-instance p1, Landroidx/appcompat/widget/t;
invoke-direct {p1, p0}, Landroidx/appcompat/widget/t;-><init>(Landroid/widget/ImageView;)V
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatImageButton;->mImageHelper:Landroidx/appcompat/widget/t;
.line 8
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatImageButton;->mImageHelper:Landroidx/appcompat/widget/t;
invoke-virtual {p1, p2, p3}, Landroidx/appcompat/widget/t;->a(Landroid/util/AttributeSet;I)V
return-void
.end method
# virtual methods
.method protected drawableStateChanged()V
.registers 2
.line 1
invoke-super {p0}, Landroid/widget/ImageButton;->drawableStateChanged()V
.line 2
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatImageButton;->mBackgroundTintHelper:Landroidx/appcompat/widget/o;
if-eqz v0, :cond_a
.line 3
invoke-virtual {v0}, Landroidx/appcompat/widget/o;->a()V
.line 4
:cond_a
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatImageButton;->mImageHelper:Landroidx/appcompat/widget/t;
if-eqz v0, :cond_11
.line 5
invoke-virtual {v0}, Landroidx/appcompat/widget/t;->a()V
:cond_11
return-void
.end method
.method public getSupportBackgroundTintList()Landroid/content/res/ColorStateList;
.registers 2
.line 1
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatImageButton;->mBackgroundTintHelper:Landroidx/appcompat/widget/o;
if-eqz v0, :cond_9
.line 2
invoke-virtual {v0}, Landroidx/appcompat/widget/o;->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/AppCompatImageButton;->mBackgroundTintHelper:Landroidx/appcompat/widget/o;
if-eqz v0, :cond_9
.line 2
invoke-virtual {v0}, Landroidx/appcompat/widget/o;->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 getSupportImageTintList()Landroid/content/res/ColorStateList;
.registers 2
.line 1
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatImageButton;->mImageHelper:Landroidx/appcompat/widget/t;
if-eqz v0, :cond_9
.line 2
invoke-virtual {v0}, Landroidx/appcompat/widget/t;->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 getSupportImageTintMode()Landroid/graphics/PorterDuff$Mode;
.registers 2
.line 1
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatImageButton;->mImageHelper:Landroidx/appcompat/widget/t;
if-eqz v0, :cond_9
.line 2
invoke-virtual {v0}, Landroidx/appcompat/widget/t;->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 hasOverlappingRendering()Z
.registers 2
.line 1
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatImageButton;->mImageHelper:Landroidx/appcompat/widget/t;
invoke-virtual {v0}, Landroidx/appcompat/widget/t;->d()Z
move-result v0
if-eqz v0, :cond_10
invoke-super {p0}, Landroid/widget/ImageButton;->hasOverlappingRendering()Z
move-result v0
if-eqz v0, :cond_10
const/4 v0, 0x1
goto :goto_11
:cond_10
const/4 v0, 0x0
:goto_11
return v0
.end method
.method public setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.registers 3
.line 1
invoke-super {p0, p1}, Landroid/widget/ImageButton;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
.line 2
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatImageButton;->mBackgroundTintHelper:Landroidx/appcompat/widget/o;
if-eqz v0, :cond_a
.line 3
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/o;->a(Landroid/graphics/drawable/Drawable;)V
:cond_a
return-void
.end method
.method public setBackgroundResource(I)V
.registers 3
.line 1
invoke-super {p0, p1}, Landroid/widget/ImageButton;->setBackgroundResource(I)V
.line 2
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatImageButton;->mBackgroundTintHelper:Landroidx/appcompat/widget/o;
if-eqz v0, :cond_a
.line 3
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/o;->a(I)V
:cond_a
return-void
.end method
.method public setImageBitmap(Landroid/graphics/Bitmap;)V
.registers 2
.line 1
invoke-super {p0, p1}, Landroid/widget/ImageButton;->setImageBitmap(Landroid/graphics/Bitmap;)V
.line 2
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatImageButton;->mImageHelper:Landroidx/appcompat/widget/t;
if-eqz p1, :cond_a
.line 3
invoke-virtual {p1}, Landroidx/appcompat/widget/t;->a()V
:cond_a
return-void
.end method
.method public setImageDrawable(Landroid/graphics/drawable/Drawable;)V
.registers 2
.line 1
invoke-super {p0, p1}, Landroid/widget/ImageButton;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
.line 2
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatImageButton;->mImageHelper:Landroidx/appcompat/widget/t;
if-eqz p1, :cond_a
.line 3
invoke-virtual {p1}, Landroidx/appcompat/widget/t;->a()V
:cond_a
return-void
.end method
.method public setImageResource(I)V
.registers 3
.line 1
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatImageButton;->mImageHelper:Landroidx/appcompat/widget/t;
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/t;->a(I)V
return-void
.end method
.method public setImageURI(Landroid/net/Uri;)V
.registers 2
.line 1
invoke-super {p0, p1}, Landroid/widget/ImageButton;->setImageURI(Landroid/net/Uri;)V
.line 2
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatImageButton;->mImageHelper:Landroidx/appcompat/widget/t;
if-eqz p1, :cond_a
.line 3
invoke-virtual {p1}, Landroidx/appcompat/widget/t;->a()V
:cond_a
return-void
.end method
.method public setSupportBackgroundTintList(Landroid/content/res/ColorStateList;)V
.registers 3
.line 1
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatImageButton;->mBackgroundTintHelper:Landroidx/appcompat/widget/o;
if-eqz v0, :cond_7
.line 2
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/o;->b(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/AppCompatImageButton;->mBackgroundTintHelper:Landroidx/appcompat/widget/o;
if-eqz v0, :cond_7
.line 2
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/o;->a(Landroid/graphics/PorterDuff$Mode;)V
:cond_7
return-void
.end method
.method public setSupportImageTintList(Landroid/content/res/ColorStateList;)V
.registers 3
.line 1
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatImageButton;->mImageHelper:Landroidx/appcompat/widget/t;
if-eqz v0, :cond_7
.line 2
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/t;->a(Landroid/content/res/ColorStateList;)V
:cond_7
return-void
.end method
.method public setSupportImageTintMode(Landroid/graphics/PorterDuff$Mode;)V
.registers 3
.line 1
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatImageButton;->mImageHelper:Landroidx/appcompat/widget/t;
if-eqz v0, :cond_7
.line 2
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/t;->a(Landroid/graphics/PorterDuff$Mode;)V
:cond_7
return-void
.end method