581 lines
14 KiB
Smali
581 lines
14 KiB
Smali
.class public Landroidx/appcompat/widget/d;
|
|
.super Ljava/lang/Object;
|
|
.source "AppCompatBackgroundHelper.java"
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final b:Landroidx/appcompat/widget/f;
|
|
|
|
.field public c:I
|
|
|
|
.field public d:Landroidx/appcompat/widget/h0;
|
|
|
|
.field public e:Landroidx/appcompat/widget/h0;
|
|
|
|
.field public f:Landroidx/appcompat/widget/h0;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/view/View;)V
|
|
.locals 1
|
|
.param p1 # Landroid/view/View;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 2
|
|
iput v0, p0, Landroidx/appcompat/widget/d;->c:I
|
|
|
|
.line 3
|
|
iput-object p1, p0, Landroidx/appcompat/widget/d;->a:Landroid/view/View;
|
|
|
|
.line 4
|
|
invoke-static {}, Landroidx/appcompat/widget/f;->b()Landroidx/appcompat/widget/f;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/d;->b:Landroidx/appcompat/widget/f;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Landroid/graphics/drawable/Drawable;)Z
|
|
.locals 3
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/d;->f:Landroidx/appcompat/widget/h0;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 2
|
|
new-instance v0, Landroidx/appcompat/widget/h0;
|
|
|
|
invoke-direct {v0}, Landroidx/appcompat/widget/h0;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/d;->f:Landroidx/appcompat/widget/h0;
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/appcompat/widget/d;->f:Landroidx/appcompat/widget/h0;
|
|
|
|
.line 4
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/h0;->a()V
|
|
|
|
.line 5
|
|
iget-object v1, p0, Landroidx/appcompat/widget/d;->a:Landroid/view/View;
|
|
|
|
invoke-static {v1}, Landroidx/core/view/ViewCompat;->N(Landroid/view/View;)Landroid/content/res/ColorStateList;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 6
|
|
iput-boolean v2, v0, Landroidx/appcompat/widget/h0;->d:Z
|
|
|
|
.line 7
|
|
iput-object v1, v0, Landroidx/appcompat/widget/h0;->a:Landroid/content/res/ColorStateList;
|
|
|
|
.line 8
|
|
:cond_1
|
|
iget-object v1, p0, Landroidx/appcompat/widget/d;->a:Landroid/view/View;
|
|
|
|
invoke-static {v1}, Landroidx/core/view/ViewCompat;->O(Landroid/view/View;)Landroid/graphics/PorterDuff$Mode;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 9
|
|
iput-boolean v2, v0, Landroidx/appcompat/widget/h0;->c:Z
|
|
|
|
.line 10
|
|
iput-object v1, v0, Landroidx/appcompat/widget/h0;->b:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 11
|
|
:cond_2
|
|
iget-boolean v1, v0, Landroidx/appcompat/widget/h0;->d:Z
|
|
|
|
if-nez v1, :cond_4
|
|
|
|
iget-boolean v1, v0, Landroidx/appcompat/widget/h0;->c:Z
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
.line 12
|
|
:cond_4
|
|
:goto_0
|
|
iget-object v1, p0, Landroidx/appcompat/widget/d;->a:Landroid/view/View;
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getDrawableState()[I
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {p1, v0, v1}, Landroidx/appcompat/widget/f;->j(Landroid/graphics/drawable/Drawable;Landroidx/appcompat/widget/h0;[I)V
|
|
|
|
return v2
|
|
.end method
|
|
|
|
.method public b()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/d;->a:Landroid/view/View;
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getBackground()Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/d;->k()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/d;->a(Landroid/graphics/drawable/Drawable;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 4
|
|
:cond_0
|
|
iget-object v1, p0, Landroidx/appcompat/widget/d;->e:Landroidx/appcompat/widget/h0;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 5
|
|
iget-object v2, p0, Landroidx/appcompat/widget/d;->a:Landroid/view/View;
|
|
|
|
.line 6
|
|
invoke-virtual {v2}, Landroid/view/View;->getDrawableState()[I
|
|
|
|
move-result-object v2
|
|
|
|
.line 7
|
|
invoke-static {v0, v1, v2}, Landroidx/appcompat/widget/f;->j(Landroid/graphics/drawable/Drawable;Landroidx/appcompat/widget/h0;[I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_1
|
|
iget-object v1, p0, Landroidx/appcompat/widget/d;->d:Landroidx/appcompat/widget/h0;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 9
|
|
iget-object v2, p0, Landroidx/appcompat/widget/d;->a:Landroid/view/View;
|
|
|
|
.line 10
|
|
invoke-virtual {v2}, Landroid/view/View;->getDrawableState()[I
|
|
|
|
move-result-object v2
|
|
|
|
.line 11
|
|
invoke-static {v0, v1, v2}, Landroidx/appcompat/widget/f;->j(Landroid/graphics/drawable/Drawable;Landroidx/appcompat/widget/h0;[I)V
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public c()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/d;->e:Landroidx/appcompat/widget/h0;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, v0, Landroidx/appcompat/widget/h0;->a:Landroid/content/res/ColorStateList;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public d()Landroid/graphics/PorterDuff$Mode;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/d;->e:Landroidx/appcompat/widget/h0;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, v0, Landroidx/appcompat/widget/h0;->b:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public e(Landroid/util/AttributeSet;I)V
|
|
.locals 8
|
|
.param p1 # Landroid/util/AttributeSet;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/d;->a:Landroid/view/View;
|
|
|
|
invoke-virtual {v0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
sget-object v3, Landroidx/appcompat/R$styleable;->ViewBackgroundHelper:[I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-static {v0, p1, v3, p2, v1}, Landroidx/appcompat/widget/j0;->G(Landroid/content/Context;Landroid/util/AttributeSet;[III)Landroidx/appcompat/widget/j0;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
iget-object v1, p0, Landroidx/appcompat/widget/d;->a:Landroid/view/View;
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v2
|
|
|
|
.line 3
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/j0;->B()Landroid/content/res/TypedArray;
|
|
|
|
move-result-object v5
|
|
|
|
const/4 v7, 0x0
|
|
|
|
move-object v4, p1
|
|
|
|
move v6, p2
|
|
|
|
.line 4
|
|
invoke-static/range {v1 .. v7}, Landroidx/core/view/ViewCompat;->z1(Landroid/view/View;Landroid/content/Context;[ILandroid/util/AttributeSet;Landroid/content/res/TypedArray;II)V
|
|
|
|
.line 5
|
|
:try_start_0
|
|
sget p1, Landroidx/appcompat/R$styleable;->ViewBackgroundHelper_android_background:I
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/j0;->C(I)Z
|
|
|
|
move-result p2
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 6
|
|
invoke-virtual {v0, p1, v1}, Landroidx/appcompat/widget/j0;->u(II)I
|
|
|
|
move-result p1
|
|
|
|
iput p1, p0, Landroidx/appcompat/widget/d;->c:I
|
|
|
|
.line 7
|
|
iget-object p1, p0, Landroidx/appcompat/widget/d;->b:Landroidx/appcompat/widget/f;
|
|
|
|
iget-object p2, p0, Landroidx/appcompat/widget/d;->a:Landroid/view/View;
|
|
|
|
.line 8
|
|
invoke-virtual {p2}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object p2
|
|
|
|
iget v2, p0, Landroidx/appcompat/widget/d;->c:I
|
|
|
|
invoke-virtual {p1, p2, v2}, Landroidx/appcompat/widget/f;->f(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 9
|
|
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/d;->h(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 10
|
|
:cond_0
|
|
sget p1, Landroidx/appcompat/R$styleable;->ViewBackgroundHelper_backgroundTint:I
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/j0;->C(I)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 11
|
|
iget-object p2, p0, Landroidx/appcompat/widget/d;->a:Landroid/view/View;
|
|
|
|
.line 12
|
|
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/j0;->d(I)Landroid/content/res/ColorStateList;
|
|
|
|
move-result-object p1
|
|
|
|
.line 13
|
|
invoke-static {p2, p1}, Landroidx/core/view/ViewCompat;->J1(Landroid/view/View;Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 14
|
|
:cond_1
|
|
sget p1, Landroidx/appcompat/R$styleable;->ViewBackgroundHelper_backgroundTintMode:I
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/j0;->C(I)Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
.line 15
|
|
iget-object p2, p0, Landroidx/appcompat/widget/d;->a:Landroid/view/View;
|
|
|
|
.line 16
|
|
invoke-virtual {v0, p1, v1}, Landroidx/appcompat/widget/j0;->o(II)I
|
|
|
|
move-result p1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 17
|
|
invoke-static {p1, v1}, Landroidx/appcompat/widget/p;->e(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuff$Mode;
|
|
|
|
move-result-object p1
|
|
|
|
.line 18
|
|
invoke-static {p2, p1}, Landroidx/core/view/ViewCompat;->K1(Landroid/view/View;Landroid/graphics/PorterDuff$Mode;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 19
|
|
:cond_2
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/j0;->I()V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/j0;->I()V
|
|
|
|
.line 20
|
|
throw p1
|
|
.end method
|
|
|
|
.method public f(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 0
|
|
|
|
const/4 p1, -0x1
|
|
|
|
.line 1
|
|
iput p1, p0, Landroidx/appcompat/widget/d;->c:I
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 2
|
|
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/d;->h(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/d;->b()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public g(I)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iput p1, p0, Landroidx/appcompat/widget/d;->c:I
|
|
|
|
.line 2
|
|
iget-object v0, p0, Landroidx/appcompat/widget/d;->b:Landroidx/appcompat/widget/f;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 3
|
|
iget-object v1, p0, Landroidx/appcompat/widget/d;->a:Landroid/view/View;
|
|
|
|
invoke-virtual {v1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1, p1}, Landroidx/appcompat/widget/f;->f(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
.line 4
|
|
:goto_0
|
|
invoke-virtual {p0, p1}, Landroidx/appcompat/widget/d;->h(Landroid/content/res/ColorStateList;)V
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/d;->b()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public h(Landroid/content/res/ColorStateList;)V
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/d;->d:Landroidx/appcompat/widget/h0;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 2
|
|
new-instance v0, Landroidx/appcompat/widget/h0;
|
|
|
|
invoke-direct {v0}, Landroidx/appcompat/widget/h0;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/d;->d:Landroidx/appcompat/widget/h0;
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/appcompat/widget/d;->d:Landroidx/appcompat/widget/h0;
|
|
|
|
iput-object p1, v0, Landroidx/appcompat/widget/h0;->a:Landroid/content/res/ColorStateList;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 4
|
|
iput-boolean p1, v0, Landroidx/appcompat/widget/h0;->d:Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 p1, 0x0
|
|
|
|
.line 5
|
|
iput-object p1, p0, Landroidx/appcompat/widget/d;->d:Landroidx/appcompat/widget/h0;
|
|
|
|
.line 6
|
|
:goto_0
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/d;->b()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public i(Landroid/content/res/ColorStateList;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/d;->e:Landroidx/appcompat/widget/h0;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 2
|
|
new-instance v0, Landroidx/appcompat/widget/h0;
|
|
|
|
invoke-direct {v0}, Landroidx/appcompat/widget/h0;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/d;->e:Landroidx/appcompat/widget/h0;
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/appcompat/widget/d;->e:Landroidx/appcompat/widget/h0;
|
|
|
|
iput-object p1, v0, Landroidx/appcompat/widget/h0;->a:Landroid/content/res/ColorStateList;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 4
|
|
iput-boolean p1, v0, Landroidx/appcompat/widget/h0;->d:Z
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/d;->b()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public j(Landroid/graphics/PorterDuff$Mode;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/d;->e:Landroidx/appcompat/widget/h0;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 2
|
|
new-instance v0, Landroidx/appcompat/widget/h0;
|
|
|
|
invoke-direct {v0}, Landroidx/appcompat/widget/h0;-><init>()V
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/d;->e:Landroidx/appcompat/widget/h0;
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object v0, p0, Landroidx/appcompat/widget/d;->e:Landroidx/appcompat/widget/h0;
|
|
|
|
iput-object p1, v0, Landroidx/appcompat/widget/h0;->b:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 4
|
|
iput-boolean p1, v0, Landroidx/appcompat/widget/h0;->c:Z
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/d;->b()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final k()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/d;->d:Landroidx/appcompat/widget/h0;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|