ImageViewCompat$LollipopViewCompatImpl.smali
.class Landroid/support/v4/widget/ImageViewCompat$LollipopViewCompatImpl;
.super Landroid/support/v4/widget/ImageViewCompat$BaseViewCompatImpl;
# annotations
.annotation build Landroid/support/annotation/RequiresApi;
value = 0x15
.end annotation
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/support/v4/widget/ImageViewCompat;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = "LollipopViewCompatImpl"
.end annotation
# direct methods
.method constructor <init>()V
.registers 1
invoke-direct {p0}, Landroid/support/v4/widget/ImageViewCompat$BaseViewCompatImpl;-><init>()V
return-void
.end method
# virtual methods
.method public getImageTintList(Landroid/widget/ImageView;)Landroid/content/res/ColorStateList;
.registers 3
invoke-virtual {p1}, Landroid/widget/ImageView;->getImageTintList()Landroid/content/res/ColorStateList;
move-result-object v0
return-object v0
.end method
.method public getImageTintMode(Landroid/widget/ImageView;)Landroid/graphics/PorterDuff$Mode;
.registers 3
invoke-virtual {p1}, Landroid/widget/ImageView;->getImageTintMode()Landroid/graphics/PorterDuff$Mode;
move-result-object v0
return-object v0
.end method
.method public setImageTintList(Landroid/widget/ImageView;Landroid/content/res/ColorStateList;)V
.registers 5
invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setImageTintList(Landroid/content/res/ColorStateList;)V
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-ne v0, v1, :cond_2e
invoke-virtual {p1}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
move-result-object v1
invoke-virtual {p1}, Landroid/widget/ImageView;->getImageTintList()Landroid/content/res/ColorStateList;
move-result-object v0
if-eqz v0, :cond_2f
invoke-virtual {p1}, Landroid/widget/ImageView;->getImageTintMode()Landroid/graphics/PorterDuff$Mode;
move-result-object v0
if-eqz v0, :cond_2f
const/4 v0, 0x1
:goto_1a
if-eqz v1, :cond_2e
if-eqz v0, :cond_2e
invoke-virtual {v1}, Landroid/graphics/drawable/Drawable;->isStateful()Z
move-result v0
if-eqz v0, :cond_2b
invoke-virtual {p1}, Landroid/widget/ImageView;->getDrawableState()[I
move-result-object v0
invoke-virtual {v1, v0}, Landroid/graphics/drawable/Drawable;->setState([I)Z
:cond_2b
invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
:cond_2e
return-void
:cond_2f
const/4 v0, 0x0
goto :goto_1a
.end method
.method public setImageTintMode(Landroid/widget/ImageView;Landroid/graphics/PorterDuff$Mode;)V
.registers 5
invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setImageTintMode(Landroid/graphics/PorterDuff$Mode;)V
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x15
if-ne v0, v1, :cond_2e
invoke-virtual {p1}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;
move-result-object v1
invoke-virtual {p1}, Landroid/widget/ImageView;->getImageTintList()Landroid/content/res/ColorStateList;
move-result-object v0
if-eqz v0, :cond_2f
invoke-virtual {p1}, Landroid/widget/ImageView;->getImageTintMode()Landroid/graphics/PorterDuff$Mode;
move-result-object v0
if-eqz v0, :cond_2f
const/4 v0, 0x1
:goto_1a
if-eqz v1, :cond_2e
if-eqz v0, :cond_2e
invoke-virtual {v1}, Landroid/graphics/drawable/Drawable;->isStateful()Z
move-result v0
if-eqz v0, :cond_2b
invoke-virtual {p1}, Landroid/widget/ImageView;->getDrawableState()[I
move-result-object v0
invoke-virtual {v1, v0}, Landroid/graphics/drawable/Drawable;->setState([I)Z
:cond_2b
invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
:cond_2e
return-void
:cond_2f
const/4 v0, 0x0
goto :goto_1a
.end method