2019-12-06 03:29:40 +00:00
|
|
|
.class public Landroidx/appcompat/widget/AppCompatTextHelper;
|
2019-07-24 11:27:29 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "AppCompatTextHelper.java"
|
|
|
|
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Landroidx/appcompat/widget/AppCompatTextHelper$ApplyTextViewCallback;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
# static fields
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public static final MONOSPACE:I = 0x3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public static final SANS:I = 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public static final SERIF:I = 0x2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public static final TEXT_FONT_WEIGHT_UNSPECIFIED:I = -0x1
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
# instance fields
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mAsyncFontPending:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end field
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mDrawableBottomTint:Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mDrawableEndTint:Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mDrawableLeftTint:Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mDrawableRightTint:Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mDrawableStartTint:Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mDrawableTint:Landroidx/appcompat/widget/TintInfo;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mDrawableTopTint:Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mFontTypeface:Landroid/graphics/Typeface;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mFontWeight:I
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public mStyle:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final mView:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public constructor <init>(Landroid/widget/TextView;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v0, -0x1
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontWeight:I
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
new-instance p1, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;-><init>(Landroid/widget/TextView;)V
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private applyCompoundDrawableTint(Landroid/graphics/drawable/Drawable;Landroidx/appcompat/widget/TintInfo;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getDrawableState()[I
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {p1, p2, v0}, Landroidx/appcompat/widget/AppCompatDrawableManager;->tintDrawable(Landroid/graphics/drawable/Drawable;Landroidx/appcompat/widget/TintInfo;[I)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public static createTintInfo(Landroid/content/Context;Landroidx/appcompat/widget/AppCompatDrawableManager;I)Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-virtual {p1, p0, p2}, Landroidx/appcompat/widget/AppCompatDrawableManager;->getTintList(Landroid/content/Context;I)Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
|
|
|
|
new-instance p1, Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
invoke-direct {p1}, Landroidx/appcompat/widget/TintInfo;-><init>()V
|
|
|
|
|
|
|
|
const/4 p2, 0x1
|
|
|
|
|
|
|
|
iput-boolean p2, p1, Landroidx/appcompat/widget/TintInfo;->mHasTintList:Z
|
|
|
|
|
|
|
|
iput-object p0, p1, Landroidx/appcompat/widget/TintInfo;->mTintList:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
return-object p1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
.method private setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
.locals 4
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v0, 0x3
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v1, 0x1
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v2, 0x2
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v3, 0x0
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-nez p5, :cond_a
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p6, :cond_0
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_7
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-12-06 03:29:40 +00:00
|
|
|
if-nez p1, :cond_1
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-nez p2, :cond_1
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-nez p3, :cond_1
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p4, :cond_f
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_1
|
|
|
|
sget p5, Landroid/os/Build$VERSION;->SDK_INT:I
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object p5, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p5}, Landroid/widget/TextView;->getCompoundDrawablesRelative()[Landroid/graphics/drawable/Drawable;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object p5
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
aget-object p6, p5, v3
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-nez p6, :cond_7
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
aget-object p6, p5, v2
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p6, :cond_2
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_4
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_2
|
|
|
|
iget-object p5, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p5}, Landroid/widget/TextView;->getCompoundDrawables()[Landroid/graphics/drawable/Drawable;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object p5
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object p6, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p1, :cond_3
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_3
|
|
|
|
aget-object p1, p5, v3
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_0
|
|
|
|
if-eqz p2, :cond_4
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_1
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_4
|
|
|
|
aget-object p2, p5, v1
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_1
|
|
|
|
if-eqz p3, :cond_5
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_2
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_5
|
|
|
|
aget-object p3, p5, v2
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_2
|
|
|
|
if-eqz p4, :cond_6
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_3
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_6
|
|
|
|
aget-object p4, p5, v0
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_3
|
|
|
|
invoke-virtual {p6, p1, p2, p3, p4}, Landroid/widget/TextView;->setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_c
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
:cond_7
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_4
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
aget-object p3, p5, v3
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
if-eqz p2, :cond_8
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_5
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
:cond_8
|
2019-12-06 03:29:40 +00:00
|
|
|
aget-object p2, p5, v1
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_5
|
|
|
|
aget-object p6, p5, v2
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
if-eqz p4, :cond_9
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_6
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
:cond_9
|
2019-12-06 03:29:40 +00:00
|
|
|
aget-object p4, p5, v0
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_6
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {p1, p3, p2, p6, p4}, Landroid/widget/TextView;->setCompoundDrawablesRelativeWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_a
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_7
|
|
|
|
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p1}, Landroid/widget/TextView;->getCompoundDrawablesRelative()[Landroid/graphics/drawable/Drawable;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object p1
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object p3, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p5, :cond_b
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_8
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
:cond_b
|
2019-12-06 03:29:40 +00:00
|
|
|
aget-object p5, p1, v3
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_8
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz p2, :cond_c
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_9
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
:cond_c
|
2019-12-06 03:29:40 +00:00
|
|
|
aget-object p2, p1, v1
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_9
|
|
|
|
if-eqz p6, :cond_d
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_a
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
:cond_d
|
2019-12-06 03:29:40 +00:00
|
|
|
aget-object p6, p1, v2
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_a
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz p4, :cond_e
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_b
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
:cond_e
|
2019-12-06 03:29:40 +00:00
|
|
|
aget-object p4, p1, v0
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_b
|
|
|
|
invoke-virtual {p3, p5, p2, p6, p4}, Landroid/widget/TextView;->setCompoundDrawablesRelativeWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
:cond_f
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_c
|
2019-11-15 02:21:15 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private setCompoundTints()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableLeftTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTopTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableRightTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableBottomTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableStartTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableEndTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
.method private setTextSizeInternal(IF)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->setTextSizeInternal(IF)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private updateTypefaceAndStyle(Landroid/content/Context;Landroidx/appcompat/widget/TintTypedArray;)V
|
2019-11-15 02:21:15 +00:00
|
|
|
.locals 8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_android_textStyle:I
|
|
|
|
|
|
|
|
iget v1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0, v1}, Landroidx/appcompat/widget/TintTypedArray;->getInt(II)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
|
|
|
|
const/16 v1, 0x1c
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
const/4 v3, -0x1
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_android_textFontWeight:I
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0, v3}, Landroidx/appcompat/widget/TintTypedArray;->getInt(II)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontWeight:I
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontWeight:I
|
|
|
|
|
|
|
|
if-eq v0, v3, :cond_0
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
|
|
|
|
|
|
|
|
and-int/2addr v0, v2
|
|
|
|
|
|
|
|
or-int/2addr v0, v4
|
|
|
|
|
|
|
|
iput v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
|
|
|
|
|
|
|
|
:cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_android_fontFamily:I
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v5, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-nez v0, :cond_6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_fontFamily:I
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz v0, :cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
sget p1, Landroidx/appcompat/R$styleable;->TextAppearance_android_typeface:I
|
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz p1, :cond_5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iput-boolean v4, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAsyncFontPending:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget p1, Landroidx/appcompat/R$styleable;->TextAppearance_android_typeface:I
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {p2, p1, v5}, Landroidx/appcompat/widget/TintTypedArray;->getInt(II)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eq p1, v5, :cond_4
|
2019-10-11 21:55:41 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eq p1, v2, :cond_3
|
2019-10-11 21:55:41 +00:00
|
|
|
|
2019-11-14 21:08:15 +00:00
|
|
|
const/4 p2, 0x3
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eq p1, p2, :cond_2
|
2019-11-14 21:08:15 +00:00
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
goto :goto_0
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_2
|
2019-07-24 11:27:29 +00:00
|
|
|
sget-object p1, Landroid/graphics/Typeface;->MONOSPACE:Landroid/graphics/Typeface;
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_3
|
2019-07-24 11:27:29 +00:00
|
|
|
sget-object p1, Landroid/graphics/Typeface;->SERIF:Landroid/graphics/Typeface;
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_4
|
2019-07-24 11:27:29 +00:00
|
|
|
sget-object p1, Landroid/graphics/Typeface;->SANS_SERIF:Landroid/graphics/Typeface;
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_5
|
2019-07-24 11:27:29 +00:00
|
|
|
:goto_0
|
|
|
|
return-void
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_6
|
2019-07-24 11:27:29 +00:00
|
|
|
:goto_1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_fontFamily:I
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz v0, :cond_7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_fontFamily:I
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_7
|
2019-07-24 11:27:29 +00:00
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_android_fontFamily:I
|
|
|
|
|
|
|
|
:goto_2
|
2019-11-15 02:21:15 +00:00
|
|
|
iget v6, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontWeight:I
|
|
|
|
|
|
|
|
iget v7, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->isRestricted()Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-nez p1, :cond_c
|
|
|
|
|
|
|
|
new-instance p1, Landroidx/appcompat/widget/AppCompatTextHelper$ApplyTextViewCallback;
|
|
|
|
|
|
|
|
invoke-direct {p1, p0, v6, v7}, Landroidx/appcompat/widget/AppCompatTextHelper$ApplyTextViewCallback;-><init>(Landroidx/appcompat/widget/AppCompatTextHelper;II)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:try_start_0
|
|
|
|
iget v6, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0, v6, p1}, Landroidx/appcompat/widget/TintTypedArray;->getFont(IILandroidx/core/content/res/ResourcesCompat$FontCallback;)Landroid/graphics/Typeface;
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result-object p1
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz p1, :cond_a
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v6, Landroid/os/Build$VERSION;->SDK_INT:I
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-lt v6, v1, :cond_9
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget v6, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontWeight:I
|
|
|
|
|
|
|
|
if-eq v6, v3, :cond_9
|
|
|
|
|
|
|
|
invoke-static {p1, v4}, Landroid/graphics/Typeface;->create(Landroid/graphics/Typeface;I)Landroid/graphics/Typeface;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iget v6, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontWeight:I
|
|
|
|
|
|
|
|
iget v7, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
|
|
|
|
|
|
|
|
and-int/2addr v7, v2
|
|
|
|
|
|
|
|
if-eqz v7, :cond_8
|
|
|
|
|
|
|
|
const/4 v7, 0x1
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
const/4 v7, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:goto_3
|
|
|
|
invoke-static {p1, v6, v7}, Landroid/graphics/Typeface;->create(Landroid/graphics/Typeface;IZ)Landroid/graphics/Typeface;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
:goto_4
|
2019-07-24 11:27:29 +00:00
|
|
|
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-nez p1, :cond_b
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 p1, 0x1
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
iput-boolean p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAsyncFontPending:Z
|
2019-07-24 11:27:29 +00:00
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/UnsupportedOperationException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.catch Landroid/content/res/Resources$NotFoundException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
goto :goto_6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:catch_0
|
|
|
|
nop
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_c
|
|
|
|
:goto_6
|
2019-07-24 11:27:29 +00:00
|
|
|
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-nez p1, :cond_f
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/appcompat/widget/TintTypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz p1, :cond_f
|
|
|
|
|
|
|
|
sget p2, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
|
|
|
|
if-lt p2, v1, :cond_e
|
|
|
|
|
|
|
|
iget p2, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontWeight:I
|
|
|
|
|
|
|
|
if-eq p2, v3, :cond_e
|
|
|
|
|
|
|
|
invoke-static {p1, v4}, Landroid/graphics/Typeface;->create(Ljava/lang/String;I)Landroid/graphics/Typeface;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iget p2, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontWeight:I
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
|
|
|
|
|
|
|
|
and-int/2addr v0, v2
|
|
|
|
|
|
|
|
if-eqz v0, :cond_d
|
|
|
|
|
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
:cond_d
|
|
|
|
invoke-static {p1, p2, v4}, Landroid/graphics/Typeface;->create(Landroid/graphics/Typeface;IZ)Landroid/graphics/Typeface;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_e
|
2019-07-24 11:27:29 +00:00
|
|
|
iget p2, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
|
|
|
|
|
|
|
|
invoke-static {p1, p2}, Landroid/graphics/Typeface;->create(Ljava/lang/String;I)Landroid/graphics/Typeface;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_f
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_7
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public applyCompoundDrawablesTints()V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 5
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableLeftTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTopTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableRightTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableBottomTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getCompoundDrawables()[Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
aget-object v3, v0, v2
|
|
|
|
|
|
|
|
iget-object v4, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableLeftTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
invoke-direct {p0, v3, v4}, Landroidx/appcompat/widget/AppCompatTextHelper;->applyCompoundDrawableTint(Landroid/graphics/drawable/Drawable;Landroidx/appcompat/widget/TintInfo;)V
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
aget-object v3, v0, v3
|
|
|
|
|
|
|
|
iget-object v4, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTopTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
invoke-direct {p0, v3, v4}, Landroidx/appcompat/widget/AppCompatTextHelper;->applyCompoundDrawableTint(Landroid/graphics/drawable/Drawable;Landroidx/appcompat/widget/TintInfo;)V
|
|
|
|
|
|
|
|
aget-object v3, v0, v1
|
|
|
|
|
|
|
|
iget-object v4, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableRightTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
invoke-direct {p0, v3, v4}, Landroidx/appcompat/widget/AppCompatTextHelper;->applyCompoundDrawableTint(Landroid/graphics/drawable/Drawable;Landroidx/appcompat/widget/TintInfo;)V
|
|
|
|
|
|
|
|
const/4 v3, 0x3
|
|
|
|
|
|
|
|
aget-object v0, v0, v3
|
|
|
|
|
|
|
|
iget-object v3, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableBottomTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, v3}, Landroidx/appcompat/widget/AppCompatTextHelper;->applyCompoundDrawableTint(Landroid/graphics/drawable/Drawable;Landroidx/appcompat/widget/TintInfo;)V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableStartTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableEndTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getCompoundDrawablesRelative()[Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
aget-object v2, v0, v2
|
|
|
|
|
|
|
|
iget-object v3, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableStartTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
invoke-direct {p0, v2, v3}, Landroidx/appcompat/widget/AppCompatTextHelper;->applyCompoundDrawableTint(Landroid/graphics/drawable/Drawable;Landroidx/appcompat/widget/TintInfo;)V
|
|
|
|
|
|
|
|
aget-object v0, v0, v1
|
|
|
|
|
|
|
|
iget-object v1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableEndTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
invoke-direct {p0, v0, v1}, Landroidx/appcompat/widget/AppCompatTextHelper;->applyCompoundDrawableTint(Landroid/graphics/drawable/Drawable;Landroidx/appcompat/widget/TintInfo;)V
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public autoSizeText()V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
2019-12-06 03:29:40 +00:00
|
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
|
|
value = {
|
|
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->autoSizeText()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public getAutoSizeMaxTextSize()I
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->getAutoSizeMaxTextSize()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public getAutoSizeMinTextSize()I
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->getAutoSizeMinTextSize()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public getAutoSizeStepGranularity()I
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->getAutoSizeStepGranularity()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public getAutoSizeTextAvailableSizes()[I
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->getAutoSizeTextAvailableSizes()[I
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public getAutoSizeTextType()I
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->getAutoSizeTextType()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public getCompoundDrawableTintList()Landroid/content/res/ColorStateList;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
2019-12-06 03:29:40 +00:00
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTint:Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz v0, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object v0, v0, Landroidx/appcompat/widget/TintInfo;->mTintList:Landroid/content/res/ColorStateList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_0
|
2019-11-15 02:21:15 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public getCompoundDrawableTintMode()Landroid/graphics/PorterDuff$Mode;
|
2019-11-15 02:21:15 +00:00
|
|
|
.locals 1
|
2019-12-06 03:29:40 +00:00
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTint:Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz v0, :cond_0
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object v0, v0, Landroidx/appcompat/widget/TintInfo;->mTintMode:Landroid/graphics/PorterDuff$Mode;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_0
|
|
|
|
const/4 v0, 0x0
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_0
|
2019-11-15 02:21:15 +00:00
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public isAutoSizeEnabled()Z
|
2019-11-15 02:21:15 +00:00
|
|
|
.locals 1
|
2019-12-06 03:29:40 +00:00
|
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
|
|
value = {
|
|
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->isAutoSizeEnabled()Z
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result v0
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public loadFromAttributes(Landroid/util/AttributeSet;I)V
|
2019-11-15 02:21:15 +00:00
|
|
|
.locals 18
|
2019-12-06 03:29:40 +00:00
|
|
|
.annotation build Landroid/annotation/SuppressLint;
|
|
|
|
value = {
|
|
|
|
"NewApi"
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
move-object/from16 v7, p0
|
|
|
|
|
|
|
|
move-object/from16 v0, p1
|
|
|
|
|
|
|
|
move/from16 v1, p2
|
|
|
|
|
|
|
|
iget-object v2, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Landroid/widget/TextView;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-static {}, Landroidx/appcompat/widget/AppCompatDrawableManager;->get()Landroidx/appcompat/widget/AppCompatDrawableManager;
|
|
|
|
|
|
|
|
move-result-object v3
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget-object v4, Landroidx/appcompat/R$styleable;->AppCompatTextHelper:[I
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
invoke-static {v2, v0, v4, v1, v5}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III)Landroidx/appcompat/widget/TintTypedArray;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
sget v6, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_textAppearance:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v8, -0x1
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v4, v6, v8}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result v6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget v9, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableLeft:I
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v4, v9}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
if-eqz v9, :cond_0
|
|
|
|
|
|
|
|
sget v9, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableLeft:I
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v4, v9, v5}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-static {v2, v3, v9}, Landroidx/appcompat/widget/AppCompatTextHelper;->createTintInfo(Landroid/content/Context;Landroidx/appcompat/widget/AppCompatDrawableManager;I)Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iput-object v9, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableLeftTint:Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
sget v9, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableTop:I
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v4, v9}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
if-eqz v9, :cond_1
|
|
|
|
|
|
|
|
sget v9, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableTop:I
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v4, v9, v5}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-static {v2, v3, v9}, Landroidx/appcompat/widget/AppCompatTextHelper;->createTintInfo(Landroid/content/Context;Landroidx/appcompat/widget/AppCompatDrawableManager;I)Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iput-object v9, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTopTint:Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_1
|
|
|
|
sget v9, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableRight:I
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v4, v9}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
if-eqz v9, :cond_2
|
|
|
|
|
|
|
|
sget v9, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableRight:I
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v4, v9, v5}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-static {v2, v3, v9}, Landroidx/appcompat/widget/AppCompatTextHelper;->createTintInfo(Landroid/content/Context;Landroidx/appcompat/widget/AppCompatDrawableManager;I)Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iput-object v9, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableRightTint:Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_2
|
|
|
|
sget v9, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableBottom:I
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v4, v9}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
if-eqz v9, :cond_3
|
|
|
|
|
|
|
|
sget v9, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableBottom:I
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v4, v9, v5}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-static {v2, v3, v9}, Landroidx/appcompat/widget/AppCompatTextHelper;->createTintInfo(Landroid/content/Context;Landroidx/appcompat/widget/AppCompatDrawableManager;I)Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iput-object v9, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableBottomTint:Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_3
|
|
|
|
sget v9, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
|
|
|
|
sget v9, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableStart:I
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v4, v9}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
if-eqz v9, :cond_4
|
|
|
|
|
|
|
|
sget v9, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableStart:I
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v4, v9, v5}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-static {v2, v3, v9}, Landroidx/appcompat/widget/AppCompatTextHelper;->createTintInfo(Landroid/content/Context;Landroidx/appcompat/widget/AppCompatDrawableManager;I)Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v9
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iput-object v9, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableStartTint:Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_4
|
|
|
|
sget v9, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableEnd:I
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v4, v9}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
if-eqz v9, :cond_5
|
|
|
|
|
|
|
|
sget v9, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableEnd:I
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v4, v9, v5}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-static {v2, v3, v9}, Landroidx/appcompat/widget/AppCompatTextHelper;->createTintInfo(Landroid/content/Context;Landroidx/appcompat/widget/AppCompatDrawableManager;I)Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result-object v9
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iput-object v9, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableEndTint:Landroidx/appcompat/widget/TintInfo;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_5
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v4}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object v4, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {v4}, Landroid/widget/TextView;->getTransformationMethod()Landroid/text/method/TransformationMethod;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
instance-of v4, v4, Landroid/text/method/PasswordTransformationMethod;
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/16 v9, 0x1a
|
2019-10-11 21:55:41 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/16 v11, 0x17
|
2019-11-14 21:08:15 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eq v6, v8, :cond_d
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget-object v13, Landroidx/appcompat/R$styleable;->TextAppearance:[I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-static {v2, v6, v13}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;I[I)Landroidx/appcompat/widget/TintTypedArray;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result-object v6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-nez v4, :cond_6
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v13, Landroidx/appcompat/R$styleable;->TextAppearance_textAllCaps:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v13}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result v13
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz v13, :cond_6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v13, Landroidx/appcompat/R$styleable;->TextAppearance_textAllCaps:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v13, v5}, Landroidx/appcompat/widget/TintTypedArray;->getBoolean(IZ)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result v13
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move v14, v13
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v13, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_6
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v13, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v14, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_0
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-direct {v7, v2, v6}, Landroidx/appcompat/widget/AppCompatTextHelper;->updateTypefaceAndStyle(Landroid/content/Context;Landroidx/appcompat/widget/TintTypedArray;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v15, Landroid/os/Build$VERSION;->SDK_INT:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-ge v15, v11, :cond_a
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v15, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColor:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v15}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result v15
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz v15, :cond_7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v15, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColor:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v15}, Landroidx/appcompat/widget/TintTypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result-object v15
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_7
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v15, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_1
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v10, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColorHint:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v10}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result v10
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz v10, :cond_8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v10, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColorHint:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v10}, Landroidx/appcompat/widget/TintTypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result-object v10
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_8
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v10, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_2
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v12, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColorLink:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v12}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result v12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz v12, :cond_9
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v12, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColorLink:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v12}, Landroidx/appcompat/widget/TintTypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result-object v12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-object/from16 v17, v15
|
|
|
|
|
|
|
|
move-object v15, v12
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-object/from16 v12, v17
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
move-object v12, v15
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_a
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v10, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v12, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_3
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v15, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:goto_4
|
|
|
|
sget v8, Landroidx/appcompat/R$styleable;->TextAppearance_textLocale:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v8}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result v8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz v8, :cond_b
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v8, Landroidx/appcompat/R$styleable;->TextAppearance_textLocale:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v8}, Landroidx/appcompat/widget/TintTypedArray;->getString(I)Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result-object v8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
goto :goto_5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_b
|
|
|
|
const/4 v8, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:goto_5
|
|
|
|
sget v11, Landroid/os/Build$VERSION;->SDK_INT:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-lt v11, v9, :cond_c
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v11, Landroidx/appcompat/R$styleable;->TextAppearance_fontVariationSettings:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v11}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result v11
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz v11, :cond_c
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v11, Landroidx/appcompat/R$styleable;->TextAppearance_fontVariationSettings:I
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v11}, Landroidx/appcompat/widget/TintTypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
|
|
|
goto :goto_6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_c
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v11, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:goto_6
|
|
|
|
invoke-virtual {v6}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
goto :goto_7
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_d
|
|
|
|
const/4 v8, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v10, 0x0
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v11, 0x0
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v12, 0x0
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v13, 0x0
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v14, 0x0
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v15, 0x0
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:goto_7
|
|
|
|
sget-object v6, Landroidx/appcompat/R$styleable;->TextAppearance:[I
|
|
|
|
|
|
|
|
invoke-static {v2, v0, v6, v1, v5}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III)Landroidx/appcompat/widget/TintTypedArray;
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
if-nez v4, :cond_e
|
|
|
|
|
|
|
|
sget v9, Landroidx/appcompat/R$styleable;->TextAppearance_textAllCaps:I
|
|
|
|
|
|
|
|
invoke-virtual {v6, v9}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v9
|
|
|
|
|
|
|
|
if-eqz v9, :cond_e
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v9, Landroidx/appcompat/R$styleable;->TextAppearance_textAllCaps:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v9, v5}, Landroidx/appcompat/widget/TintTypedArray;->getBoolean(IZ)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result v14
|
|
|
|
|
|
|
|
const/4 v13, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_e
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v9, Landroid/os/Build$VERSION;->SDK_INT:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/16 v5, 0x17
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-ge v9, v5, :cond_11
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v5, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColor:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v5}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result v5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz v5, :cond_f
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v5, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColor:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v5}, Landroidx/appcompat/widget/TintTypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result-object v12
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_f
|
|
|
|
sget v5, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColorHint:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v5}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result v5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz v5, :cond_10
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v5, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColorHint:I
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v5}, Landroidx/appcompat/widget/TintTypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result-object v10
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_10
|
|
|
|
sget v5, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColorLink:I
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v5}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result v5
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz v5, :cond_11
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v5, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColorLink:I
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v5}, Landroidx/appcompat/widget/TintTypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result-object v15
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_11
|
|
|
|
sget v5, Landroidx/appcompat/R$styleable;->TextAppearance_textLocale:I
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v5}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-eqz v5, :cond_12
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v5, Landroidx/appcompat/R$styleable;->TextAppearance_textLocale:I
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v5}, Landroidx/appcompat/widget/TintTypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v8
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-14 21:08:15 +00:00
|
|
|
:cond_12
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v5, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
|
|
|
|
const/16 v9, 0x1a
|
|
|
|
|
|
|
|
if-lt v5, v9, :cond_13
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v5, Landroidx/appcompat/R$styleable;->TextAppearance_fontVariationSettings:I
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6, v5}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-eqz v5, :cond_13
|
|
|
|
|
|
|
|
sget v5, Landroidx/appcompat/R$styleable;->TextAppearance_fontVariationSettings:I
|
|
|
|
|
|
|
|
invoke-virtual {v6, v5}, Landroidx/appcompat/widget/TintTypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v11
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_13
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v5, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
|
|
|
|
const/16 v9, 0x1c
|
|
|
|
|
|
|
|
if-lt v5, v9, :cond_14
|
|
|
|
|
|
|
|
sget v5, Landroidx/appcompat/R$styleable;->TextAppearance_android_textSize:I
|
|
|
|
|
|
|
|
invoke-virtual {v6, v5}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
|
|
|
|
move-result v5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
if-eqz v5, :cond_14
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v5, Landroidx/appcompat/R$styleable;->TextAppearance_android_textSize:I
|
|
|
|
|
|
|
|
const/4 v9, -0x1
|
|
|
|
|
|
|
|
invoke-virtual {v6, v5, v9}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-nez v5, :cond_14
|
|
|
|
|
|
|
|
iget-object v5, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
move-object/from16 v16, v3
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v5, v3, v9}, Landroid/widget/TextView;->setTextSize(IF)V
|
|
|
|
|
|
|
|
goto :goto_8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_14
|
2019-11-15 02:21:15 +00:00
|
|
|
move-object/from16 v16, v3
|
|
|
|
|
|
|
|
:goto_8
|
|
|
|
invoke-direct {v7, v2, v6}, Landroidx/appcompat/widget/AppCompatTextHelper;->updateTypefaceAndStyle(Landroid/content/Context;Landroidx/appcompat/widget/TintTypedArray;)V
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v6}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz v12, :cond_15
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object v3, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v3, v12}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_15
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz v10, :cond_16
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object v3, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v3, v10}, Landroid/widget/TextView;->setHintTextColor(Landroid/content/res/ColorStateList;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_16
|
|
|
|
if-eqz v15, :cond_17
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object v3, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v3, v15}, Landroid/widget/TextView;->setLinkTextColor(Landroid/content/res/ColorStateList;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_17
|
|
|
|
if-nez v4, :cond_18
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz v13, :cond_18
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v7, v14}, Landroidx/appcompat/widget/AppCompatTextHelper;->setAllCaps(Z)V
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_18
|
|
|
|
iget-object v3, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz v3, :cond_1a
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget v4, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontWeight:I
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v5, -0x1
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-ne v4, v5, :cond_19
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object v4, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget v5, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v4, v3, v5}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
goto :goto_9
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_19
|
|
|
|
iget-object v4, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v4, v3}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_1a
|
|
|
|
:goto_9
|
|
|
|
if-eqz v11, :cond_1b
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object v3, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v3, v11}, Landroid/widget/TextView;->setFontVariationSettings(Ljava/lang/String;)Z
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_1b
|
|
|
|
if-eqz v8, :cond_1d
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v3, Landroid/os/Build$VERSION;->SDK_INT:I
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/16 v4, 0x18
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-lt v3, v4, :cond_1c
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object v3, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-static {v8}, Landroid/os/LocaleList;->forLanguageTags(Ljava/lang/String;)Landroid/os/LocaleList;
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result-object v4
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v3, v4}, Landroid/widget/TextView;->setTextLocales(Landroid/os/LocaleList;)V
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
goto :goto_a
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_1c
|
|
|
|
const/16 v3, 0x2c
|
|
|
|
|
|
|
|
invoke-virtual {v8, v3}, Ljava/lang/String;->indexOf(I)I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v8, v4, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
iget-object v4, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-static {v3}, Ljava/util/Locale;->forLanguageTag(Ljava/lang/String;)Ljava/util/Locale;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
invoke-virtual {v4, v3}, Landroid/widget/TextView;->setTextLocale(Ljava/util/Locale;)V
|
|
|
|
|
|
|
|
:cond_1d
|
|
|
|
:goto_a
|
|
|
|
iget-object v3, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v3, v0, v1}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->loadFromAttributes(Landroid/util/AttributeSet;I)V
|
|
|
|
|
|
|
|
sget-boolean v1, Landroidx/core/widget/AutoSizeableTextView;->PLATFORM_SUPPORTS_AUTOSIZE:Z
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1f
|
|
|
|
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->getAutoSizeTextType()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1f
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->getAutoSizeTextAvailableSizes()[I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
array-length v3, v1
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-lez v3, :cond_1f
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object v3, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Landroid/widget/TextView;->getAutoSizeStepGranularity()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
int-to-float v3, v3
|
|
|
|
|
|
|
|
const/high16 v4, -0x40800000 # -1.0f
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
cmpl-float v3, v3, v4
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz v3, :cond_1e
|
|
|
|
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
iget-object v3, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v3}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->getAutoSizeMinTextSize()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object v4, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v4}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->getAutoSizeMaxTextSize()I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object v5, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v5}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->getAutoSizeStepGranularity()I
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result v5
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v6, 0x0
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v1, v3, v4, v5, v6}, Landroid/widget/TextView;->setAutoSizeTextTypeUniformWithConfiguration(IIII)V
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
goto :goto_b
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_1e
|
|
|
|
const/4 v6, 0x0
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
iget-object v3, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v3, v1, v6}, Landroid/widget/TextView;->setAutoSizeTextTypeUniformWithPresetSizes([II)V
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_1f
|
|
|
|
:goto_b
|
|
|
|
sget-object v1, Landroidx/appcompat/R$styleable;->AppCompatTextView:[I
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-static {v2, v0, v1}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[I)Landroidx/appcompat/widget/TintTypedArray;
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result-object v8
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->AppCompatTextView_drawableLeftCompat:I
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v1, -0x1
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v8, v0, v1}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result v0
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-object/from16 v3, v16
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eq v0, v1, :cond_20
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
invoke-virtual {v3, v2, v0}, Landroidx/appcompat/widget/AppCompatDrawableManager;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-result-object v0
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
move-object v4, v0
|
2019-11-10 14:21:47 +00:00
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
goto :goto_c
|
|
|
|
|
|
|
|
:cond_20
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
:goto_c
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->AppCompatTextView_drawableTopCompat:I
|
|
|
|
|
|
|
|
invoke-virtual {v8, v0, v1}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_21
|
|
|
|
|
|
|
|
invoke-virtual {v3, v2, v0}, Landroidx/appcompat/widget/AppCompatDrawableManager;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
move-object v5, v0
|
|
|
|
|
|
|
|
goto :goto_d
|
|
|
|
|
|
|
|
:cond_21
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
:goto_d
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->AppCompatTextView_drawableRightCompat:I
|
|
|
|
|
|
|
|
invoke-virtual {v8, v0, v1}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_22
|
|
|
|
|
|
|
|
invoke-virtual {v3, v2, v0}, Landroidx/appcompat/widget/AppCompatDrawableManager;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
move-object v6, v0
|
|
|
|
|
|
|
|
goto :goto_e
|
|
|
|
|
|
|
|
:cond_22
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
:goto_e
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->AppCompatTextView_drawableBottomCompat:I
|
|
|
|
|
|
|
|
invoke-virtual {v8, v0, v1}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_23
|
|
|
|
|
|
|
|
invoke-virtual {v3, v2, v0}, Landroidx/appcompat/widget/AppCompatDrawableManager;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
move-object v9, v0
|
|
|
|
|
|
|
|
goto :goto_f
|
|
|
|
|
|
|
|
:cond_23
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
:goto_f
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->AppCompatTextView_drawableStartCompat:I
|
|
|
|
|
|
|
|
invoke-virtual {v8, v0, v1}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_24
|
|
|
|
|
|
|
|
invoke-virtual {v3, v2, v0}, Landroidx/appcompat/widget/AppCompatDrawableManager;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
move-object v10, v0
|
|
|
|
|
|
|
|
goto :goto_10
|
|
|
|
|
|
|
|
:cond_24
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
:goto_10
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->AppCompatTextView_drawableEndCompat:I
|
|
|
|
|
|
|
|
invoke-virtual {v8, v0, v1}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_25
|
|
|
|
|
|
|
|
invoke-virtual {v3, v2, v0}, Landroidx/appcompat/widget/AppCompatDrawableManager;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
move-object v11, v0
|
|
|
|
|
|
|
|
goto :goto_11
|
|
|
|
|
|
|
|
:cond_25
|
|
|
|
const/4 v11, 0x0
|
|
|
|
|
|
|
|
:goto_11
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
|
|
|
|
move-object v1, v4
|
|
|
|
|
|
|
|
move-object v2, v5
|
|
|
|
|
|
|
|
move-object v3, v6
|
|
|
|
|
|
|
|
move-object v4, v9
|
|
|
|
|
|
|
|
move-object v5, v10
|
|
|
|
|
|
|
|
move-object v6, v11
|
|
|
|
|
|
|
|
invoke-direct/range {v0 .. v6}, Landroidx/appcompat/widget/AppCompatTextHelper;->setCompoundDrawables(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->AppCompatTextView_drawableTint:I
|
|
|
|
|
|
|
|
invoke-virtual {v8, v0}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_26
|
|
|
|
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->AppCompatTextView_drawableTint:I
|
|
|
|
|
|
|
|
invoke-virtual {v8, v0}, Landroidx/appcompat/widget/TintTypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-static {v1, v0}, Landroidx/core/widget/TextViewCompat;->setCompoundDrawableTintList(Landroid/widget/TextView;Landroid/content/res/ColorStateList;)V
|
|
|
|
|
|
|
|
:cond_26
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->AppCompatTextView_drawableTintMode:I
|
|
|
|
|
|
|
|
invoke-virtual {v8, v0}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_27
|
|
|
|
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->AppCompatTextView_drawableTintMode:I
|
|
|
|
|
|
|
|
const/4 v1, -0x1
|
|
|
|
|
|
|
|
invoke-virtual {v8, v0, v1}, Landroidx/appcompat/widget/TintTypedArray;->getInt(II)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
invoke-static {v0, v2}, Landroidx/appcompat/widget/DrawableUtils;->parseTintMode(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuff$Mode;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget-object v2, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-static {v2, v0}, Landroidx/core/widget/TextViewCompat;->setCompoundDrawableTintMode(Landroid/widget/TextView;Landroid/graphics/PorterDuff$Mode;)V
|
|
|
|
|
|
|
|
goto :goto_12
|
|
|
|
|
|
|
|
:cond_27
|
|
|
|
const/4 v1, -0x1
|
|
|
|
|
|
|
|
:goto_12
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->AppCompatTextView_firstBaselineToTopHeight:I
|
|
|
|
|
|
|
|
invoke-virtual {v8, v0, v1}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
sget v2, Landroidx/appcompat/R$styleable;->AppCompatTextView_lastBaselineToBottomHeight:I
|
|
|
|
|
|
|
|
invoke-virtual {v8, v2, v1}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
sget v3, Landroidx/appcompat/R$styleable;->AppCompatTextView_lineHeight:I
|
|
|
|
|
|
|
|
invoke-virtual {v8, v3, v1}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
invoke-virtual {v8}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_28
|
|
|
|
|
|
|
|
iget-object v4, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-static {v4, v0}, Landroidx/core/widget/TextViewCompat;->setFirstBaselineToTopHeight(Landroid/widget/TextView;I)V
|
|
|
|
|
|
|
|
:cond_28
|
|
|
|
if-eq v2, v1, :cond_29
|
|
|
|
|
|
|
|
iget-object v0, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-static {v0, v2}, Landroidx/core/widget/TextViewCompat;->setLastBaselineToBottomHeight(Landroid/widget/TextView;I)V
|
|
|
|
|
|
|
|
:cond_29
|
|
|
|
if-eq v3, v1, :cond_2a
|
|
|
|
|
|
|
|
iget-object v0, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-static {v0, v3}, Landroidx/core/widget/TextViewCompat;->setLineHeight(Landroid/widget/TextView;I)V
|
|
|
|
|
|
|
|
:cond_2a
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onLayout(ZIIII)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
2019-12-06 03:29:40 +00:00
|
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
|
|
value = {
|
|
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget-boolean p1, Landroidx/core/widget/AutoSizeableTextView;->PLATFORM_SUPPORTS_AUTOSIZE:Z
|
|
|
|
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/AppCompatTextHelper;->autoSizeText()V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onSetCompoundDrawables()V
|
2019-11-15 02:21:15 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/AppCompatTextHelper;->applyCompoundDrawablesTints()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onSetTextAppearance(Landroid/content/Context;I)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 3
|
|
|
|
|
|
|
|
sget-object v0, Landroidx/appcompat/R$styleable;->TextAppearance:[I
|
|
|
|
|
|
|
|
invoke-static {p1, p2, v0}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;I[I)Landroidx/appcompat/widget/TintTypedArray;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_textAllCaps:I
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_textAllCaps:I
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0, v1}, Landroidx/appcompat/widget/TintTypedArray;->getBoolean(IZ)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0}, Landroidx/appcompat/widget/AppCompatTextHelper;->setAllCaps(Z)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
|
|
|
|
const/16 v2, 0x17
|
|
|
|
|
|
|
|
if-ge v0, v2, :cond_1
|
|
|
|
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColor:I
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColor:I
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/appcompat/widget/TintTypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
iget-object v2, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v0}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_android_textSize:I
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_android_textSize:I
|
|
|
|
|
|
|
|
const/4 v2, -0x1
|
|
|
|
|
|
|
|
invoke-virtual {p2, v0, v2}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2}, Landroid/widget/TextView;->setTextSize(IF)V
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
invoke-direct {p0, p1, p2}, Landroidx/appcompat/widget/AppCompatTextHelper;->updateTypefaceAndStyle(Landroid/content/Context;Landroidx/appcompat/widget/TintTypedArray;)V
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
sget p1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
|
|
|
|
const/16 v0, 0x1a
|
|
|
|
|
|
|
|
if-lt p1, v0, :cond_3
|
|
|
|
|
|
|
|
sget p1, Landroidx/appcompat/R$styleable;->TextAppearance_fontVariationSettings:I
|
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
sget p1, Landroidx/appcompat/R$styleable;->TextAppearance_fontVariationSettings:I
|
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Landroidx/appcompat/widget/TintTypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setFontVariationSettings(Ljava/lang/String;)Z
|
|
|
|
|
|
|
|
:cond_3
|
2019-07-24 11:27:29 +00:00
|
|
|
invoke-virtual {p2}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
|
|
|
|
|
|
|
|
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
if-eqz p1, :cond_4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object p2, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
iget v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
|
|
|
|
|
|
|
|
invoke-virtual {p2, p1, v0}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
:cond_4
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public runOnUiThread(Ljava/lang/Runnable;)V
|
|
|
|
.locals 1
|
2019-12-06 03:29:40 +00:00
|
|
|
.param p1 # Ljava/lang/Runnable;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
|
|
value = {
|
|
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->post(Ljava/lang/Runnable;)Z
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public setAllCaps(Z)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setAllCaps(Z)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public setAutoSizeTextTypeUniformWithConfiguration(IIII)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/lang/IllegalArgumentException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1, p2, p3, p4}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->setAutoSizeTextTypeUniformWithConfiguration(IIII)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public setAutoSizeTextTypeUniformWithPresetSizes([II)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
2019-12-06 03:29:40 +00:00
|
|
|
.param p1 # [I
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
|
|
value = {
|
|
|
|
Ljava/lang/IllegalArgumentException;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1, p2}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->setAutoSizeTextTypeUniformWithPresetSizes([II)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public setAutoSizeTextTypeWithDefaults(I)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->setAutoSizeTextTypeWithDefaults(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public setCompoundDrawableTintList(Landroid/content/res/ColorStateList;)V
|
2019-11-15 02:21:15 +00:00
|
|
|
.locals 1
|
2019-12-06 03:29:40 +00:00
|
|
|
.param p1 # Landroid/content/res/ColorStateList;
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
new-instance v0, Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Landroidx/appcompat/widget/TintInfo;-><init>()V
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
iput-object p1, v0, Landroidx/appcompat/widget/TintInfo;->mTintList:Landroid/content/res/ColorStateList;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iput-boolean p1, v0, Landroidx/appcompat/widget/TintInfo;->mHasTintList:Z
|
|
|
|
|
|
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/AppCompatTextHelper;->setCompoundTints()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public setCompoundDrawableTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
2019-11-15 02:21:15 +00:00
|
|
|
.locals 1
|
2019-12-06 03:29:40 +00:00
|
|
|
.param p1 # Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
new-instance v0, Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Landroidx/appcompat/widget/TintInfo;-><init>()V
|
|
|
|
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
|
|
|
|
iput-object p1, v0, Landroidx/appcompat/widget/TintInfo;->mTintMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
iput-boolean p1, v0, Landroidx/appcompat/widget/TintInfo;->mHasTintMode:Z
|
|
|
|
|
|
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/AppCompatTextHelper;->setCompoundTints()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public setTextSize(IF)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
2019-12-06 03:29:40 +00:00
|
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
|
|
value = {
|
|
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget-boolean v0, Landroidx/core/widget/AutoSizeableTextView;->PLATFORM_SUPPORTS_AUTOSIZE:Z
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/AppCompatTextHelper;->isAutoSizeEnabled()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Landroidx/appcompat/widget/AppCompatTextHelper;->setTextSizeInternal(IF)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
.method public setTypefaceByCallback(Landroid/graphics/Typeface;)V
|
|
|
|
.locals 1
|
2019-12-06 03:29:40 +00:00
|
|
|
.param p1 # Landroid/graphics/Typeface;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
|
|
value = {
|
|
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY:Landroidx/annotation/RestrictTo$Scope;
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-11-15 02:21:15 +00:00
|
|
|
|
|
|
|
iget-boolean v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAsyncFontPending:Z
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|