apkfuckery/com.discord/smali/androidx/appcompat/widget/AppCompatTextHelper.smali

1264 lines
40 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class Landroidx/appcompat/widget/AppCompatTextHelper;
.super Ljava/lang/Object;
.source "AppCompatTextHelper.java"
# static fields
.field private static final MONOSPACE:I = 0x3
.field private static final SANS:I = 0x1
.field private static final SERIF:I = 0x2
# instance fields
.field private mAsyncFontPending:Z
.field private final mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
.field private mDrawableBottomTint:Landroidx/appcompat/widget/TintInfo;
.field private mDrawableEndTint:Landroidx/appcompat/widget/TintInfo;
.field private mDrawableLeftTint:Landroidx/appcompat/widget/TintInfo;
.field private mDrawableRightTint:Landroidx/appcompat/widget/TintInfo;
.field private mDrawableStartTint:Landroidx/appcompat/widget/TintInfo;
.field private mDrawableTopTint:Landroidx/appcompat/widget/TintInfo;
.field private mFontTypeface:Landroid/graphics/Typeface;
.field private mStyle:I
.field private final mView:Landroid/widget/TextView;
# direct methods
.method constructor <init>(Landroid/widget/TextView;)V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
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
.method private static createTintInfo(Landroid/content/Context;Landroidx/appcompat/widget/AppCompatDrawableManager;I)Landroidx/appcompat/widget/TintInfo;
.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
.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-10-11 21:55:41 +00:00
.locals 4
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
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-10-11 21:55:41 +00:00
const/4 v1, 0x0
const/4 v2, 0x1
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
if-nez v0, :cond_5
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-10-11 21:55:41 +00:00
if-eqz v0, :cond_0
2019-07-24 11:27:29 +00:00
goto :goto_1
2019-10-11 21:55:41 +00:00
:cond_0
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-10-11 21:55:41 +00:00
if-eqz p1, :cond_4
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
iput-boolean v1, 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-10-11 21:55:41 +00:00
invoke-virtual {p2, p1, v2}, Landroidx/appcompat/widget/TintTypedArray;->getInt(II)I
2019-07-24 11:27:29 +00:00
move-result p1
2019-10-07 23:23:22 +00:00
if-eq p1, v2, :cond_3
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
const/4 p2, 0x2
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
if-eq p1, p2, :cond_2
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
const/4 p2, 0x3
if-eq p1, p2, :cond_1
2019-07-24 11:27:29 +00:00
goto :goto_0
2019-10-11 21:55:41 +00:00
:cond_1
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-10-11 21:55:41 +00:00
:cond_2
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;
return-void
2019-10-11 21:55:41 +00:00
:cond_3
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-10-11 21:55:41 +00:00
:cond_4
2019-07-24 11:27:29 +00:00
:goto_0
return-void
2019-10-11 21:55:41 +00:00
:cond_5
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-10-11 21:55:41 +00:00
if-eqz v0, :cond_6
2019-07-24 11:27:29 +00:00
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_fontFamily:I
goto :goto_2
2019-10-11 21:55:41 +00:00
:cond_6
2019-07-24 11:27:29 +00:00
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_android_fontFamily:I
:goto_2
invoke-virtual {p1}, Landroid/content/Context;->isRestricted()Z
move-result p1
2019-10-11 21:55:41 +00:00
if-nez p1, :cond_8
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
new-instance p1, Ljava/lang/ref/WeakReference;
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
iget-object v3, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
invoke-direct {p1, v3}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
new-instance v3, Landroidx/appcompat/widget/AppCompatTextHelper$1;
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
invoke-direct {v3, p0, p1}, Landroidx/appcompat/widget/AppCompatTextHelper$1;-><init>(Landroidx/appcompat/widget/AppCompatTextHelper;Ljava/lang/ref/WeakReference;)V
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
:try_start_0
iget p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {p2, v0, p1, v3}, Landroidx/appcompat/widget/TintTypedArray;->getFont(IILandroidx/core/content/res/ResourcesCompat$FontCallback;)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;
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
2019-10-11 21:55:41 +00:00
if-nez p1, :cond_7
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
const/4 v1, 0x1
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
:cond_7
iput-boolean v1, 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-10-11 21:55:41 +00:00
goto :goto_3
2019-07-24 11:27:29 +00:00
:catch_0
nop
2019-10-11 21:55:41 +00:00
:cond_8
:goto_3
2019-07-24 11:27:29 +00:00
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
2019-10-11 21:55:41 +00:00
if-nez p1, :cond_9
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-10-11 21:55:41 +00:00
if-eqz p1, :cond_9
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-10-11 21:55:41 +00:00
:cond_9
2019-07-24 11:27:29 +00:00
return-void
.end method
# virtual methods
.method applyCompoundDrawablesTints()V
.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
const/16 v3, 0x11
if-lt v0, v3, :cond_3
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
.method autoSizeText()V
.locals 1
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
.method getAutoSizeMaxTextSize()I
.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
.method getAutoSizeMinTextSize()I
.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
.method getAutoSizeStepGranularity()I
.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
.method getAutoSizeTextAvailableSizes()[I
.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
.method getAutoSizeTextType()I
.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-10-11 21:55:41 +00:00
.method isAutoSizeEnabled()Z
2019-07-24 11:27:29 +00:00
.locals 1
2019-10-11 21:55:41 +00:00
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->isAutoSizeEnabled()Z
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result v0
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
return v0
2019-10-07 23:23:22 +00:00
.end method
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
.method loadFromAttributes(Landroid/util/AttributeSet;I)V
.locals 17
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-object/from16 v0, p0
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-object/from16 v1, p1
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move/from16 v2, p2
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
iget-object v3, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v3}, Landroid/widget/TextView;->getContext()Landroid/content/Context;
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result-object v3
2019-10-07 23:23:22 +00:00
invoke-static {}, Landroidx/appcompat/widget/AppCompatDrawableManager;->get()Landroidx/appcompat/widget/AppCompatDrawableManager;
2019-10-11 21:55:41 +00:00
move-result-object v4
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
sget-object v5, Landroidx/appcompat/R$styleable;->AppCompatTextHelper:[I
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
const/4 v6, 0x0
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
invoke-static {v3, v1, v5, v2, v6}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III)Landroidx/appcompat/widget/TintTypedArray;
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
move-result-object v5
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
sget v7, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_textAppearance:I
2019-07-24 11:27:29 +00:00
const/4 v8, -0x1
2019-10-11 21:55:41 +00:00
invoke-virtual {v5, v7, v8}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result v7
2019-07-24 11:27:29 +00:00
sget v9, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableLeft:I
2019-10-11 21:55:41 +00:00
invoke-virtual {v5, 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-10-11 21:55:41 +00:00
invoke-virtual {v5, v9, v6}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
2019-07-24 11:27:29 +00:00
move-result v9
2019-10-11 21:55:41 +00:00
invoke-static {v3, v4, 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-10-11 21:55:41 +00:00
iput-object v9, v0, 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-10-11 21:55:41 +00:00
invoke-virtual {v5, 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-10-11 21:55:41 +00:00
invoke-virtual {v5, v9, v6}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
2019-07-24 11:27:29 +00:00
move-result v9
2019-10-11 21:55:41 +00:00
invoke-static {v3, v4, 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-10-11 21:55:41 +00:00
iput-object v9, v0, 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-10-11 21:55:41 +00:00
invoke-virtual {v5, 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-10-11 21:55:41 +00:00
invoke-virtual {v5, v9, v6}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
2019-07-24 11:27:29 +00:00
move-result v9
2019-10-11 21:55:41 +00:00
invoke-static {v3, v4, 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-10-11 21:55:41 +00:00
iput-object v9, v0, 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-10-11 21:55:41 +00:00
invoke-virtual {v5, 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-10-11 21:55:41 +00:00
invoke-virtual {v5, v9, v6}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
2019-07-24 11:27:29 +00:00
move-result v9
2019-10-11 21:55:41 +00:00
invoke-static {v3, v4, 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-10-11 21:55:41 +00:00
iput-object v9, v0, 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
const/16 v10, 0x11
if-lt v9, v10, :cond_5
sget v9, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableStart:I
2019-10-11 21:55:41 +00:00
invoke-virtual {v5, 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-10-11 21:55:41 +00:00
invoke-virtual {v5, v9, v6}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
2019-07-24 11:27:29 +00:00
move-result v9
2019-10-11 21:55:41 +00:00
invoke-static {v3, v4, 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-10-11 21:55:41 +00:00
iput-object v9, v0, 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-10-11 21:55:41 +00:00
invoke-virtual {v5, 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-10-11 21:55:41 +00:00
invoke-virtual {v5, v9, v6}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
2019-07-24 11:27:29 +00:00
move-result v9
2019-10-11 21:55:41 +00:00
invoke-static {v3, v4, 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-10-11 21:55:41 +00:00
move-result-object v4
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
iput-object v4, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableEndTint:Landroidx/appcompat/widget/TintInfo;
2019-07-24 11:27:29 +00:00
:cond_5
2019-10-11 21:55:41 +00:00
invoke-virtual {v5}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
iget-object v4, v0, 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-10-11 21:55:41 +00:00
const/4 v5, 0x1
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
const/16 v9, 0x17
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
const/4 v10, 0x0
if-eq v7, v8, :cond_b
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
sget-object v11, Landroidx/appcompat/R$styleable;->TextAppearance:[I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-static {v3, v7, v11}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;I[I)Landroidx/appcompat/widget/TintTypedArray;
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result-object v7
2019-07-24 11:27:29 +00:00
if-nez v4, :cond_6
2019-10-11 21:55:41 +00:00
sget v11, Landroidx/appcompat/R$styleable;->TextAppearance_textAllCaps:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, v11}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result v11
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
if-eqz v11, :cond_6
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
sget v11, Landroidx/appcompat/R$styleable;->TextAppearance_textAllCaps:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, v11, v6}, Landroidx/appcompat/widget/TintTypedArray;->getBoolean(IZ)Z
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result v11
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move v12, v11
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
const/4 v11, 0x1
2019-07-24 11:27:29 +00:00
goto :goto_0
:cond_6
2019-10-11 21:55:41 +00:00
const/4 v11, 0x0
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
const/4 v12, 0x0
2019-07-24 11:27:29 +00:00
:goto_0
2019-10-11 21:55:41 +00:00
invoke-direct {v0, v3, v7}, Landroidx/appcompat/widget/AppCompatTextHelper;->updateTypefaceAndStyle(Landroid/content/Context;Landroidx/appcompat/widget/TintTypedArray;)V
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
sget v13, Landroid/os/Build$VERSION;->SDK_INT:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
if-ge v13, v9, :cond_a
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
sget v13, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColor:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, v13}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result v13
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
if-eqz v13, :cond_7
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
sget v13, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColor:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, v13}, Landroidx/appcompat/widget/TintTypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result-object v13
2019-07-24 11:27:29 +00:00
goto :goto_1
:cond_7
2019-10-11 21:55:41 +00:00
move-object v13, v10
2019-07-24 11:27:29 +00:00
:goto_1
2019-10-11 21:55:41 +00:00
sget v14, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColorHint:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, v14}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result v14
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
if-eqz v14, :cond_8
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
sget v14, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColorHint:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, v14}, Landroidx/appcompat/widget/TintTypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result-object v14
2019-07-24 11:27:29 +00:00
goto :goto_2
:cond_8
2019-10-11 21:55:41 +00:00
move-object v14, v10
2019-07-24 11:27:29 +00:00
:goto_2
2019-10-11 21:55:41 +00:00
sget v15, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColorLink:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, v15}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result v15
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
if-eqz v15, :cond_9
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
sget v10, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColorLink:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, v10}, Landroidx/appcompat/widget/TintTypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
move-result-object v10
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
:cond_9
move-object/from16 v16, v13
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-object v13, v10
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
move-object/from16 v10, v16
2019-07-24 11:27:29 +00:00
goto :goto_3
:cond_a
2019-10-11 21:55:41 +00:00
move-object v13, v10
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-object v14, v13
2019-07-24 11:27:29 +00:00
:goto_3
2019-10-11 21:55:41 +00:00
invoke-virtual {v7}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
goto :goto_4
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
:cond_b
move-object v13, v10
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-object v14, v13
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
const/4 v11, 0x0
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
const/4 v12, 0x0
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
:goto_4
sget-object v7, Landroidx/appcompat/R$styleable;->TextAppearance:[I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-static {v3, v1, v7, v2, v6}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III)Landroidx/appcompat/widget/TintTypedArray;
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result-object v7
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
if-nez v4, :cond_c
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
sget v15, Landroidx/appcompat/R$styleable;->TextAppearance_textAllCaps:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, v15}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result v15
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
if-eqz v15, :cond_c
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
sget v11, Landroidx/appcompat/R$styleable;->TextAppearance_textAllCaps:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, v11, v6}, Landroidx/appcompat/widget/TintTypedArray;->getBoolean(IZ)Z
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
move-result v12
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
goto :goto_5
2019-07-24 11:27:29 +00:00
:cond_c
2019-10-11 21:55:41 +00:00
move v5, v11
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
:goto_5
sget v11, Landroid/os/Build$VERSION;->SDK_INT:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
if-ge v11, v9, :cond_f
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
sget v9, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColor:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, v9}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result v9
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
if-eqz v9, :cond_d
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
sget v9, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColor:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, v9}, Landroidx/appcompat/widget/TintTypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
move-result-object v10
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
:cond_d
sget v9, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColorHint:I
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, 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-10-11 21:55:41 +00:00
sget v9, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColorHint:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, v9}, Landroidx/appcompat/widget/TintTypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result-object v14
2019-07-24 11:27:29 +00:00
:cond_e
2019-10-11 21:55:41 +00:00
sget v9, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColorLink:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, v9}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result v9
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
if-eqz v9, :cond_f
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
sget v9, Landroidx/appcompat/R$styleable;->TextAppearance_android_textColorLink:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, v9}, Landroidx/appcompat/widget/TintTypedArray;->getColorStateList(I)Landroid/content/res/ColorStateList;
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result-object v13
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
:cond_f
2019-10-11 21:55:41 +00:00
sget v9, Landroid/os/Build$VERSION;->SDK_INT:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
const/16 v11, 0x1c
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
if-lt v9, v11, :cond_10
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
sget v9, Landroidx/appcompat/R$styleable;->TextAppearance_android_textSize:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, v9}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result v9
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
if-eqz v9, :cond_10
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
sget v9, Landroidx/appcompat/R$styleable;->TextAppearance_android_textSize:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, v9, v8}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result v9
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
if-nez v9, :cond_10
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
iget-object v9, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
const/4 v11, 0x0
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v9, v6, v11}, Landroid/widget/TextView;->setTextSize(IF)V
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
:cond_10
invoke-direct {v0, v3, v7}, Landroidx/appcompat/widget/AppCompatTextHelper;->updateTypefaceAndStyle(Landroid/content/Context;Landroidx/appcompat/widget/TintTypedArray;)V
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
if-eqz v10, :cond_11
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
iget-object v7, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, v10}, Landroid/widget/TextView;->setTextColor(Landroid/content/res/ColorStateList;)V
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
:cond_11
if-eqz v14, :cond_12
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
iget-object v7, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, v14}, Landroid/widget/TextView;->setHintTextColor(Landroid/content/res/ColorStateList;)V
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
:cond_12
if-eqz v13, :cond_13
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
iget-object v7, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7, v13}, Landroid/widget/TextView;->setLinkTextColor(Landroid/content/res/ColorStateList;)V
2019-07-24 11:27:29 +00:00
:cond_13
2019-10-11 21:55:41 +00:00
if-nez v4, :cond_14
2019-07-24 11:27:29 +00:00
if-eqz v5, :cond_14
2019-10-11 21:55:41 +00:00
invoke-virtual {v0, v12}, Landroidx/appcompat/widget/AppCompatTextHelper;->setAllCaps(Z)V
2019-07-24 11:27:29 +00:00
:cond_14
2019-10-11 21:55:41 +00:00
iget-object v4, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
if-eqz v4, :cond_15
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
iget-object v5, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
iget v7, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v5, v4, v7}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V
2019-07-24 11:27:29 +00:00
:cond_15
2019-10-11 21:55:41 +00:00
iget-object v4, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v4, v1, v2}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->loadFromAttributes(Landroid/util/AttributeSet;I)V
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
sget-boolean v2, Landroidx/core/widget/AutoSizeableTextView;->PLATFORM_SUPPORTS_AUTOSIZE:Z
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
if-eqz v2, :cond_17
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
iget-object v2, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v2}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->getAutoSizeTextType()I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result v2
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
if-eqz v2, :cond_17
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
iget-object v2, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v2}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->getAutoSizeTextAvailableSizes()[I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
array-length v4, v2
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
if-lez v4, :cond_17
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
iget-object v4, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v4}, Landroid/widget/TextView;->getAutoSizeStepGranularity()I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
move-result v4
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
int-to-float v4, v4
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
const/high16 v5, -0x40800000 # -1.0f
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
cmpl-float v4, v4, v5
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
if-eqz v4, :cond_16
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
iget-object v2, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
iget-object v4, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v4}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->getAutoSizeMinTextSize()I
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
move-result v4
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
iget-object v5, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v5}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->getAutoSizeMaxTextSize()I
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
move-result v5
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
iget-object v7, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v7}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->getAutoSizeStepGranularity()I
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
move-result v7
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v2, v4, v5, v7, v6}, Landroid/widget/TextView;->setAutoSizeTextTypeUniformWithConfiguration(IIII)V
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
goto :goto_6
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
:cond_16
iget-object v4, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v4, v2, v6}, Landroid/widget/TextView;->setAutoSizeTextTypeUniformWithPresetSizes([II)V
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
:cond_17
:goto_6
sget-object v2, Landroidx/appcompat/R$styleable;->AppCompatTextView:[I
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
invoke-static {v3, v1, v2}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[I)Landroidx/appcompat/widget/TintTypedArray;
2019-07-24 11:27:29 +00:00
move-result-object v1
2019-10-11 21:55:41 +00:00
sget v2, Landroidx/appcompat/R$styleable;->AppCompatTextView_firstBaselineToTopHeight:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v1, v2, v8}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
move-result v2
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
sget v3, Landroidx/appcompat/R$styleable;->AppCompatTextView_lastBaselineToBottomHeight:I
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v1, v3, v8}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
2019-07-24 11:27:29 +00:00
move-result v3
2019-10-11 21:55:41 +00:00
sget v4, Landroidx/appcompat/R$styleable;->AppCompatTextView_lineHeight:I
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {v1, v4, v8}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
2019-07-24 11:27:29 +00:00
move-result v4
2019-10-11 21:55:41 +00:00
invoke-virtual {v1}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
2019-07-24 11:27:29 +00:00
2019-10-11 21:55:41 +00:00
if-eq v2, v8, :cond_18
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
iget-object v1, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
invoke-static {v1, v2}, Landroidx/core/widget/TextViewCompat;->setFirstBaselineToTopHeight(Landroid/widget/TextView;I)V
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
:cond_18
if-eq v3, v8, :cond_19
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
iget-object v1, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
invoke-static {v1, v3}, Landroidx/core/widget/TextViewCompat;->setLastBaselineToBottomHeight(Landroid/widget/TextView;I)V
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
:cond_19
if-eq v4, v8, :cond_1a
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
iget-object v1, v0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
invoke-static {v1, v4}, Landroidx/core/widget/TextViewCompat;->setLineHeight(Landroid/widget/TextView;I)V
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
:cond_1a
return-void
.end method
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
.method onAsyncTypefaceReceived(Ljava/lang/ref/WeakReference;Landroid/graphics/Typeface;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/ref/WeakReference<",
"Landroid/widget/TextView;",
">;",
"Landroid/graphics/Typeface;",
")V"
}
.end annotation
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
iget-boolean v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAsyncFontPending:Z
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
if-eqz v0, :cond_0
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
iput-object p2, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
move-result-object p1
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
check-cast p1, Landroid/widget/TextView;
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
if-eqz p1, :cond_0
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
iget v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
invoke-virtual {p1, p2, v0}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V
2019-10-07 23:23:22 +00:00
2019-10-11 21:55:41 +00:00
:cond_0
2019-07-24 11:27:29 +00:00
return-void
.end method
.method onLayout(ZIIII)V
.locals 0
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
.method onSetTextAppearance(Landroid/content/Context;I)V
.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
invoke-virtual {p2}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
2019-10-11 21:55:41 +00:00
if-eqz p1, :cond_3
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-10-11 21:55:41 +00:00
:cond_3
2019-07-24 11:27:29 +00:00
return-void
.end method
.method setAllCaps(Z)V
.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
.method setAutoSizeTextTypeUniformWithConfiguration(IIII)V
.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
.method setAutoSizeTextTypeUniformWithPresetSizes([II)V
.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}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->setAutoSizeTextTypeUniformWithPresetSizes([II)V
return-void
.end method
.method setAutoSizeTextTypeWithDefaults(I)V
.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
.method setTextSize(IF)V
.locals 1
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