2106 lines
60 KiB
Smali
2106 lines
60 KiB
Smali
.class Landroidx/appcompat/widget/AppCompatTextHelper;
|
|
.super Ljava/lang/Object;
|
|
.source "AppCompatTextHelper.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/appcompat/widget/AppCompatTextHelper$Api28Impl;,
|
|
Landroidx/appcompat/widget/AppCompatTextHelper$Api21Impl;,
|
|
Landroidx/appcompat/widget/AppCompatTextHelper$Api17Impl;,
|
|
Landroidx/appcompat/widget/AppCompatTextHelper$Api24Impl;,
|
|
Landroidx/appcompat/widget/AppCompatTextHelper$Api26Impl;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final MONOSPACE:I = 0x3
|
|
|
|
.field private static final SANS:I = 0x1
|
|
|
|
.field private static final SERIF:I = 0x2
|
|
|
|
.field private static final TEXT_FONT_WEIGHT_UNSPECIFIED:I = -0x1
|
|
|
|
|
|
# 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 mDrawableTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
.field private mDrawableTopTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
.field private mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
.field private mFontWeight:I
|
|
|
|
.field private mStyle:I
|
|
|
|
.field private final mView:Landroid/widget/TextView;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Landroid/widget/TextView;)V
|
|
.locals 1
|
|
|
|
.line 80
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 75
|
|
iput v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 76
|
|
iput v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontWeight:I
|
|
|
|
.line 81
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
.line 82
|
|
new-instance v0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
invoke-direct {v0, p1}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;-><init>(Landroid/widget/TextView;)V
|
|
|
|
iput-object v0, 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
|
|
|
|
.line 545
|
|
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
|
|
|
|
.line 551
|
|
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
|
|
|
|
.line 553
|
|
new-instance p1, Landroidx/appcompat/widget/TintInfo;
|
|
|
|
invoke-direct {p1}, Landroidx/appcompat/widget/TintInfo;-><init>()V
|
|
|
|
const/4 p2, 0x1
|
|
|
|
.line 554
|
|
iput-boolean p2, p1, Landroidx/appcompat/widget/TintInfo;->mHasTintList:Z
|
|
|
|
.line 555
|
|
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 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
|
|
.locals 5
|
|
|
|
const/4 v0, 0x3
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x2
|
|
|
|
if-nez p5, :cond_a
|
|
|
|
if-eqz p6, :cond_0
|
|
|
|
goto :goto_7
|
|
|
|
:cond_0
|
|
if-nez p1, :cond_1
|
|
|
|
if-nez p2, :cond_1
|
|
|
|
if-nez p3, :cond_1
|
|
|
|
if-eqz p4, :cond_f
|
|
|
|
.line 686
|
|
:cond_1
|
|
iget-object p5, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
invoke-static {p5}, Landroidx/appcompat/widget/AppCompatTextHelper$Api17Impl;->getCompoundDrawablesRelative(Landroid/widget/TextView;)[Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p5
|
|
|
|
.line 687
|
|
aget-object p6, p5, v2
|
|
|
|
if-nez p6, :cond_7
|
|
|
|
aget-object v4, p5, v3
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
goto :goto_4
|
|
|
|
.line 695
|
|
:cond_2
|
|
iget-object p5, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {p5}, Landroid/widget/TextView;->getCompoundDrawables()[Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p5
|
|
|
|
.line 696
|
|
iget-object p6, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
goto :goto_0
|
|
|
|
.line 697
|
|
:cond_3
|
|
aget-object p1, p5, v2
|
|
|
|
:goto_0
|
|
if-eqz p2, :cond_4
|
|
|
|
goto :goto_1
|
|
|
|
.line 698
|
|
:cond_4
|
|
aget-object p2, p5, v1
|
|
|
|
:goto_1
|
|
if-eqz p3, :cond_5
|
|
|
|
goto :goto_2
|
|
|
|
.line 699
|
|
:cond_5
|
|
aget-object p3, p5, v3
|
|
|
|
:goto_2
|
|
if-eqz p4, :cond_6
|
|
|
|
goto :goto_3
|
|
|
|
.line 700
|
|
:cond_6
|
|
aget-object p4, p5, v0
|
|
|
|
.line 696
|
|
: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
|
|
|
|
goto :goto_c
|
|
|
|
.line 688
|
|
:cond_7
|
|
:goto_4
|
|
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
if-eqz p2, :cond_8
|
|
|
|
goto :goto_5
|
|
|
|
.line 689
|
|
:cond_8
|
|
aget-object p2, p5, v1
|
|
|
|
:goto_5
|
|
aget-object p3, p5, v3
|
|
|
|
if-eqz p4, :cond_9
|
|
|
|
goto :goto_6
|
|
|
|
.line 690
|
|
:cond_9
|
|
aget-object p4, p5, v0
|
|
|
|
.line 688
|
|
:goto_6
|
|
invoke-static {p1, p6, p2, p3, p4}, Landroidx/appcompat/widget/AppCompatTextHelper$Api17Impl;->setCompoundDrawablesRelativeWithIntrinsicBounds(Landroid/widget/TextView;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
return-void
|
|
|
|
.line 676
|
|
:cond_a
|
|
:goto_7
|
|
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
invoke-static {p1}, Landroidx/appcompat/widget/AppCompatTextHelper$Api17Impl;->getCompoundDrawablesRelative(Landroid/widget/TextView;)[Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object p1
|
|
|
|
.line 677
|
|
iget-object p3, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
if-eqz p5, :cond_b
|
|
|
|
goto :goto_8
|
|
|
|
.line 678
|
|
:cond_b
|
|
aget-object p5, p1, v2
|
|
|
|
:goto_8
|
|
if-eqz p2, :cond_c
|
|
|
|
goto :goto_9
|
|
|
|
.line 679
|
|
:cond_c
|
|
aget-object p2, p1, v1
|
|
|
|
:goto_9
|
|
if-eqz p6, :cond_d
|
|
|
|
goto :goto_a
|
|
|
|
.line 680
|
|
:cond_d
|
|
aget-object p6, p1, v3
|
|
|
|
:goto_a
|
|
if-eqz p4, :cond_e
|
|
|
|
goto :goto_b
|
|
|
|
.line 681
|
|
:cond_e
|
|
aget-object p4, p1, v0
|
|
|
|
.line 677
|
|
:goto_b
|
|
invoke-static {p3, p5, p2, p6, p4}, Landroidx/appcompat/widget/AppCompatTextHelper$Api17Impl;->setCompoundDrawablesRelativeWithIntrinsicBounds(Landroid/widget/TextView;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
|
|
|
|
:cond_f
|
|
:goto_c
|
|
return-void
|
|
.end method
|
|
|
|
.method private setCompoundTints()V
|
|
.locals 1
|
|
|
|
.line 663
|
|
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;
|
|
|
|
.line 664
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTopTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
.line 665
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableRightTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
.line 666
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableBottomTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
.line 667
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableStartTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
.line 668
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableEndTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private setTextSizeInternal(IF)V
|
|
.locals 1
|
|
|
|
.line 592
|
|
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
|
|
.locals 9
|
|
|
|
.line 345
|
|
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
|
|
|
|
.line 347
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/4 v1, 0x2
|
|
|
|
const/4 v2, -0x1
|
|
|
|
const/16 v3, 0x1c
|
|
|
|
if-lt v0, v3, :cond_0
|
|
|
|
.line 348
|
|
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_android_textFontWeight:I
|
|
|
|
invoke-virtual {p2, v0, v2}, Landroidx/appcompat/widget/TintTypedArray;->getInt(II)I
|
|
|
|
move-result v0
|
|
|
|
iput v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontWeight:I
|
|
|
|
if-eq v0, v2, :cond_0
|
|
|
|
.line 351
|
|
iget v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
|
|
|
|
and-int/2addr v0, v1
|
|
|
|
iput v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
|
|
|
|
.line 355
|
|
:cond_0
|
|
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_android_fontFamily:I
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v4, 0x1
|
|
|
|
const/4 v5, 0x0
|
|
|
|
if-nez v0, :cond_6
|
|
|
|
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_fontFamily:I
|
|
|
|
.line 356
|
|
invoke-virtual {p2, v0}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
.line 418
|
|
:cond_1
|
|
sget p1, Landroidx/appcompat/R$styleable;->TextAppearance_android_typeface:I
|
|
|
|
invoke-virtual {p2, p1}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_5
|
|
|
|
.line 420
|
|
iput-boolean v5, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAsyncFontPending:Z
|
|
|
|
.line 421
|
|
sget p1, Landroidx/appcompat/R$styleable;->TextAppearance_android_typeface:I
|
|
|
|
invoke-virtual {p2, p1, v4}, Landroidx/appcompat/widget/TintTypedArray;->getInt(II)I
|
|
|
|
move-result p1
|
|
|
|
if-eq p1, v4, :cond_4
|
|
|
|
if-eq p1, v1, :cond_3
|
|
|
|
const/4 p2, 0x3
|
|
|
|
if-eq p1, p2, :cond_2
|
|
|
|
goto :goto_0
|
|
|
|
.line 432
|
|
:cond_2
|
|
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
|
|
|
|
.line 428
|
|
:cond_3
|
|
sget-object p1, Landroid/graphics/Typeface;->SERIF:Landroid/graphics/Typeface;
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
goto :goto_0
|
|
|
|
.line 424
|
|
:cond_4
|
|
sget-object p1, Landroid/graphics/Typeface;->SANS_SERIF:Landroid/graphics/Typeface;
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
:cond_5
|
|
:goto_0
|
|
return-void
|
|
|
|
:cond_6
|
|
:goto_1
|
|
const/4 v0, 0x0
|
|
|
|
.line 357
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
.line 358
|
|
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_fontFamily:I
|
|
|
|
invoke-virtual {p2, v0}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
.line 359
|
|
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_fontFamily:I
|
|
|
|
goto :goto_2
|
|
|
|
.line 360
|
|
:cond_7
|
|
sget v0, Landroidx/appcompat/R$styleable;->TextAppearance_android_fontFamily:I
|
|
|
|
.line 361
|
|
:goto_2
|
|
iget v6, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontWeight:I
|
|
|
|
.line 362
|
|
iget v7, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
|
|
|
|
.line 363
|
|
invoke-virtual {p1}, Landroid/content/Context;->isRestricted()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_c
|
|
|
|
.line 364
|
|
new-instance p1, Ljava/lang/ref/WeakReference;
|
|
|
|
iget-object v8, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
invoke-direct {p1, v8}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
.line 365
|
|
new-instance v8, Landroidx/appcompat/widget/AppCompatTextHelper$1;
|
|
|
|
invoke-direct {v8, p0, v6, v7, p1}, Landroidx/appcompat/widget/AppCompatTextHelper$1;-><init>(Landroidx/appcompat/widget/AppCompatTextHelper;IILjava/lang/ref/WeakReference;)V
|
|
|
|
.line 384
|
|
:try_start_0
|
|
iget p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
|
|
|
|
invoke-virtual {p2, v0, p1, v8}, Landroidx/appcompat/widget/TintTypedArray;->getFont(IILandroidx/core/content/res/ResourcesCompat$FontCallback;)Landroid/graphics/Typeface;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_a
|
|
|
|
.line 386
|
|
sget v6, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
if-lt v6, v3, :cond_9
|
|
|
|
iget v6, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontWeight:I
|
|
|
|
if-eq v6, v2, :cond_9
|
|
|
|
.line 389
|
|
invoke-static {p1, v5}, 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, v1
|
|
|
|
if-eqz v7, :cond_8
|
|
|
|
move v7, v4
|
|
|
|
goto :goto_3
|
|
|
|
:cond_8
|
|
move v7, v5
|
|
|
|
.line 388
|
|
:goto_3
|
|
invoke-static {p1, v6, v7}, Landroidx/appcompat/widget/AppCompatTextHelper$Api28Impl;->create(Landroid/graphics/Typeface;IZ)Landroid/graphics/Typeface;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
goto :goto_4
|
|
|
|
.line 392
|
|
:cond_9
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
.line 396
|
|
:cond_a
|
|
:goto_4
|
|
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
if-nez p1, :cond_b
|
|
|
|
move p1, v4
|
|
|
|
goto :goto_5
|
|
|
|
:cond_b
|
|
move p1, v5
|
|
|
|
:goto_5
|
|
iput-boolean p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAsyncFontPending:Z
|
|
: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
|
|
|
|
.line 401
|
|
:catch_0
|
|
:cond_c
|
|
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
if-nez p1, :cond_f
|
|
|
|
.line 403
|
|
invoke-virtual {p2, v0}, Landroidx/appcompat/widget/TintTypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_f
|
|
|
|
.line 405
|
|
sget p2, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
if-lt p2, v3, :cond_e
|
|
|
|
iget p2, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontWeight:I
|
|
|
|
if-eq p2, v2, :cond_e
|
|
|
|
.line 408
|
|
invoke-static {p1, v5}, 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, v1
|
|
|
|
if-eqz v0, :cond_d
|
|
|
|
goto :goto_6
|
|
|
|
:cond_d
|
|
move v4, v5
|
|
|
|
.line 407
|
|
:goto_6
|
|
invoke-static {p1, p2, v4}, Landroidx/appcompat/widget/AppCompatTextHelper$Api28Impl;->create(Landroid/graphics/Typeface;IZ)Landroid/graphics/Typeface;
|
|
|
|
move-result-object p1
|
|
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
goto :goto_7
|
|
|
|
.line 411
|
|
:cond_e
|
|
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;
|
|
|
|
:cond_f
|
|
:goto_7
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method applyCompoundDrawablesTints()V
|
|
.locals 5
|
|
|
|
.line 526
|
|
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
|
|
|
|
.line 528
|
|
: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
|
|
|
|
.line 529
|
|
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
|
|
|
|
.line 530
|
|
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
|
|
|
|
.line 531
|
|
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
|
|
|
|
.line 532
|
|
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
|
|
|
|
.line 535
|
|
:cond_1
|
|
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
|
|
|
|
.line 536
|
|
:cond_2
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
invoke-static {v0}, Landroidx/appcompat/widget/AppCompatTextHelper$Api17Impl;->getCompoundDrawablesRelative(Landroid/widget/TextView;)[Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
.line 537
|
|
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
|
|
|
|
.line 538
|
|
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
|
|
|
|
.line 582
|
|
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
|
|
|
|
.line 627
|
|
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
|
|
|
|
.line 623
|
|
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
|
|
|
|
.line 619
|
|
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
|
|
|
|
.line 631
|
|
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
|
|
|
|
.line 615
|
|
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
|
|
|
|
.method getCompoundDrawableTintList()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
|
|
.line 636
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, v0, Landroidx/appcompat/widget/TintInfo;->mTintList:Landroid/content/res/ColorStateList;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method getCompoundDrawableTintMode()Landroid/graphics/PorterDuff$Mode;
|
|
.locals 1
|
|
|
|
.line 650
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, v0, Landroidx/appcompat/widget/TintInfo;->mTintMode:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method isAutoSizeEnabled()Z
|
|
.locals 1
|
|
|
|
.line 588
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->isAutoSizeEnabled()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method loadFromAttributes(Landroid/util/AttributeSet;I)V
|
|
.locals 16
|
|
|
|
move-object/from16 v7, p0
|
|
|
|
move-object/from16 v8, p1
|
|
|
|
move/from16 v9, p2
|
|
|
|
.line 87
|
|
iget-object v0, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v10
|
|
|
|
.line 88
|
|
invoke-static {}, Landroidx/appcompat/widget/AppCompatDrawableManager;->get()Landroidx/appcompat/widget/AppCompatDrawableManager;
|
|
|
|
move-result-object v11
|
|
|
|
.line 91
|
|
sget-object v0, Landroidx/appcompat/R$styleable;->AppCompatTextHelper:[I
|
|
|
|
const/4 v12, 0x0
|
|
|
|
invoke-static {v10, v8, v0, v9, v12}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III)Landroidx/appcompat/widget/TintTypedArray;
|
|
|
|
move-result-object v13
|
|
|
|
.line 93
|
|
iget-object v0, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v2, Landroidx/appcompat/R$styleable;->AppCompatTextHelper:[I
|
|
|
|
.line 94
|
|
invoke-virtual {v13}, Landroidx/appcompat/widget/TintTypedArray;->getWrappedTypeArray()Landroid/content/res/TypedArray;
|
|
|
|
move-result-object v4
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move-object/from16 v3, p1
|
|
|
|
move/from16 v5, p2
|
|
|
|
.line 93
|
|
invoke-static/range {v0 .. v6}, Landroidx/core/view/ViewCompat;->saveAttributeDataForStyleable(Landroid/view/View;Landroid/content/Context;[ILandroid/util/AttributeSet;Landroid/content/res/TypedArray;II)V
|
|
|
|
.line 97
|
|
sget v0, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_textAppearance:I
|
|
|
|
const/4 v14, -0x1
|
|
|
|
invoke-virtual {v13, v0, v14}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
move-result v0
|
|
|
|
.line 99
|
|
sget v1, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableLeft:I
|
|
|
|
invoke-virtual {v13, v1}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 100
|
|
sget v1, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableLeft:I
|
|
|
|
.line 101
|
|
invoke-virtual {v13, v1, v12}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
move-result v1
|
|
|
|
.line 100
|
|
invoke-static {v10, v11, v1}, Landroidx/appcompat/widget/AppCompatTextHelper;->createTintInfo(Landroid/content/Context;Landroidx/appcompat/widget/AppCompatDrawableManager;I)Landroidx/appcompat/widget/TintInfo;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableLeftTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
.line 103
|
|
:cond_0
|
|
sget v1, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableTop:I
|
|
|
|
invoke-virtual {v13, v1}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 104
|
|
sget v1, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableTop:I
|
|
|
|
.line 105
|
|
invoke-virtual {v13, v1, v12}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
move-result v1
|
|
|
|
.line 104
|
|
invoke-static {v10, v11, v1}, Landroidx/appcompat/widget/AppCompatTextHelper;->createTintInfo(Landroid/content/Context;Landroidx/appcompat/widget/AppCompatDrawableManager;I)Landroidx/appcompat/widget/TintInfo;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTopTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
.line 107
|
|
:cond_1
|
|
sget v1, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableRight:I
|
|
|
|
invoke-virtual {v13, v1}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 108
|
|
sget v1, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableRight:I
|
|
|
|
.line 109
|
|
invoke-virtual {v13, v1, v12}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
move-result v1
|
|
|
|
.line 108
|
|
invoke-static {v10, v11, v1}, Landroidx/appcompat/widget/AppCompatTextHelper;->createTintInfo(Landroid/content/Context;Landroidx/appcompat/widget/AppCompatDrawableManager;I)Landroidx/appcompat/widget/TintInfo;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableRightTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
.line 111
|
|
:cond_2
|
|
sget v1, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableBottom:I
|
|
|
|
invoke-virtual {v13, v1}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 112
|
|
sget v1, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableBottom:I
|
|
|
|
.line 113
|
|
invoke-virtual {v13, v1, v12}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
move-result v1
|
|
|
|
.line 112
|
|
invoke-static {v10, v11, v1}, Landroidx/appcompat/widget/AppCompatTextHelper;->createTintInfo(Landroid/content/Context;Landroidx/appcompat/widget/AppCompatDrawableManager;I)Landroidx/appcompat/widget/TintInfo;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableBottomTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
.line 117
|
|
:cond_3
|
|
sget v1, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableStart:I
|
|
|
|
invoke-virtual {v13, v1}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 118
|
|
sget v1, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableStart:I
|
|
|
|
.line 119
|
|
invoke-virtual {v13, v1, v12}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
move-result v1
|
|
|
|
.line 118
|
|
invoke-static {v10, v11, v1}, Landroidx/appcompat/widget/AppCompatTextHelper;->createTintInfo(Landroid/content/Context;Landroidx/appcompat/widget/AppCompatDrawableManager;I)Landroidx/appcompat/widget/TintInfo;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableStartTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
.line 121
|
|
:cond_4
|
|
sget v1, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableEnd:I
|
|
|
|
invoke-virtual {v13, v1}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
.line 122
|
|
sget v1, Landroidx/appcompat/R$styleable;->AppCompatTextHelper_android_drawableEnd:I
|
|
|
|
.line 123
|
|
invoke-virtual {v13, v1, v12}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
move-result v1
|
|
|
|
.line 122
|
|
invoke-static {v10, v11, v1}, Landroidx/appcompat/widget/AppCompatTextHelper;->createTintInfo(Landroid/content/Context;Landroidx/appcompat/widget/AppCompatDrawableManager;I)Landroidx/appcompat/widget/TintInfo;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableEndTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
.line 127
|
|
:cond_5
|
|
invoke-virtual {v13}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
|
|
|
|
.line 132
|
|
iget-object v1, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
.line 133
|
|
invoke-virtual {v1}, Landroid/widget/TextView;->getTransformationMethod()Landroid/text/method/TransformationMethod;
|
|
|
|
move-result-object v1
|
|
|
|
instance-of v1, v1, Landroid/text/method/PasswordTransformationMethod;
|
|
|
|
const/16 v2, 0x1a
|
|
|
|
const/4 v13, 0x0
|
|
|
|
if-eq v0, v14, :cond_9
|
|
|
|
.line 144
|
|
sget-object v4, Landroidx/appcompat/R$styleable;->TextAppearance:[I
|
|
|
|
invoke-static {v10, v0, v4}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;I[I)Landroidx/appcompat/widget/TintTypedArray;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v1, :cond_6
|
|
|
|
.line 145
|
|
sget v4, Landroidx/appcompat/R$styleable;->TextAppearance_textAllCaps:I
|
|
|
|
invoke-virtual {v0, v4}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_6
|
|
|
|
.line 147
|
|
sget v4, Landroidx/appcompat/R$styleable;->TextAppearance_textAllCaps:I
|
|
|
|
invoke-virtual {v0, v4, v12}, Landroidx/appcompat/widget/TintTypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v4
|
|
|
|
const/4 v5, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_6
|
|
move v4, v12
|
|
|
|
move v5, v4
|
|
|
|
.line 150
|
|
:goto_0
|
|
invoke-direct {v7, v10, v0}, Landroidx/appcompat/widget/AppCompatTextHelper;->updateTypefaceAndStyle(Landroid/content/Context;Landroidx/appcompat/widget/TintTypedArray;)V
|
|
|
|
.line 166
|
|
sget v6, Landroidx/appcompat/R$styleable;->TextAppearance_textLocale:I
|
|
|
|
invoke-virtual {v0, v6}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_7
|
|
|
|
.line 167
|
|
sget v6, Landroidx/appcompat/R$styleable;->TextAppearance_textLocale:I
|
|
|
|
invoke-virtual {v0, v6}, Landroidx/appcompat/widget/TintTypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
goto :goto_1
|
|
|
|
:cond_7
|
|
move-object v6, v13
|
|
|
|
.line 169
|
|
:goto_1
|
|
sget v15, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
if-lt v15, v2, :cond_8
|
|
|
|
sget v15, Landroidx/appcompat/R$styleable;->TextAppearance_fontVariationSettings:I
|
|
|
|
.line 170
|
|
invoke-virtual {v0, v15}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result v15
|
|
|
|
if-eqz v15, :cond_8
|
|
|
|
.line 171
|
|
sget v15, Landroidx/appcompat/R$styleable;->TextAppearance_fontVariationSettings:I
|
|
|
|
invoke-virtual {v0, v15}, Landroidx/appcompat/widget/TintTypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v15
|
|
|
|
goto :goto_2
|
|
|
|
:cond_8
|
|
move-object v15, v13
|
|
|
|
.line 173
|
|
:goto_2
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_9
|
|
move v4, v12
|
|
|
|
move v5, v4
|
|
|
|
move-object v6, v13
|
|
|
|
move-object v15, v6
|
|
|
|
.line 177
|
|
:goto_3
|
|
sget-object v0, Landroidx/appcompat/R$styleable;->TextAppearance:[I
|
|
|
|
invoke-static {v10, v8, v0, v9, v12}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[III)Landroidx/appcompat/widget/TintTypedArray;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v1, :cond_a
|
|
|
|
.line 179
|
|
sget v3, Landroidx/appcompat/R$styleable;->TextAppearance_textAllCaps:I
|
|
|
|
invoke-virtual {v0, v3}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_a
|
|
|
|
.line 181
|
|
sget v3, Landroidx/appcompat/R$styleable;->TextAppearance_textAllCaps:I
|
|
|
|
invoke-virtual {v0, v3, v12}, Landroidx/appcompat/widget/TintTypedArray;->getBoolean(IZ)Z
|
|
|
|
move-result v4
|
|
|
|
const/4 v3, 0x1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_a
|
|
move v3, v5
|
|
|
|
.line 198
|
|
:goto_4
|
|
sget v5, Landroidx/appcompat/R$styleable;->TextAppearance_textLocale:I
|
|
|
|
invoke-virtual {v0, v5}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_b
|
|
|
|
.line 199
|
|
sget v5, Landroidx/appcompat/R$styleable;->TextAppearance_textLocale:I
|
|
|
|
invoke-virtual {v0, v5}, Landroidx/appcompat/widget/TintTypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
.line 202
|
|
:cond_b
|
|
sget v5, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
if-lt v5, v2, :cond_c
|
|
|
|
sget v2, Landroidx/appcompat/R$styleable;->TextAppearance_fontVariationSettings:I
|
|
|
|
.line 203
|
|
invoke-virtual {v0, v2}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_c
|
|
|
|
.line 204
|
|
sget v2, Landroidx/appcompat/R$styleable;->TextAppearance_fontVariationSettings:I
|
|
|
|
invoke-virtual {v0, v2}, Landroidx/appcompat/widget/TintTypedArray;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v15
|
|
|
|
.line 207
|
|
:cond_c
|
|
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v5, 0x1c
|
|
|
|
if-lt v2, v5, :cond_d
|
|
|
|
sget v2, Landroidx/appcompat/R$styleable;->TextAppearance_android_textSize:I
|
|
|
|
.line 208
|
|
invoke-virtual {v0, v2}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_d
|
|
|
|
.line 209
|
|
sget v2, Landroidx/appcompat/R$styleable;->TextAppearance_android_textSize:I
|
|
|
|
invoke-virtual {v0, v2, v14}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_d
|
|
|
|
.line 210
|
|
iget-object v2, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
const/4 v5, 0x0
|
|
|
|
invoke-virtual {v2, v12, v5}, Landroid/widget/TextView;->setTextSize(IF)V
|
|
|
|
.line 214
|
|
:cond_d
|
|
invoke-direct {v7, v10, v0}, Landroidx/appcompat/widget/AppCompatTextHelper;->updateTypefaceAndStyle(Landroid/content/Context;Landroidx/appcompat/widget/TintTypedArray;)V
|
|
|
|
.line 215
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
|
|
|
|
if-nez v1, :cond_e
|
|
|
|
if-eqz v3, :cond_e
|
|
|
|
.line 227
|
|
invoke-virtual {v7, v4}, Landroidx/appcompat/widget/AppCompatTextHelper;->setAllCaps(Z)V
|
|
|
|
.line 229
|
|
:cond_e
|
|
iget-object v0, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
if-eqz v0, :cond_10
|
|
|
|
.line 230
|
|
iget v1, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontWeight:I
|
|
|
|
if-ne v1, v14, :cond_f
|
|
|
|
.line 231
|
|
iget-object v1, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
iget v2, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
|
|
|
|
invoke-virtual {v1, v0, v2}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V
|
|
|
|
goto :goto_5
|
|
|
|
.line 233
|
|
:cond_f
|
|
iget-object v1, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
invoke-virtual {v1, v0}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V
|
|
|
|
:cond_10
|
|
:goto_5
|
|
if-eqz v15, :cond_11
|
|
|
|
.line 237
|
|
iget-object v0, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
invoke-static {v0, v15}, Landroidx/appcompat/widget/AppCompatTextHelper$Api26Impl;->setFontVariationSettings(Landroid/widget/TextView;Ljava/lang/String;)Z
|
|
|
|
:cond_11
|
|
if-eqz v6, :cond_12
|
|
|
|
.line 241
|
|
iget-object v0, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
invoke-static {v6}, Landroidx/appcompat/widget/AppCompatTextHelper$Api24Impl;->forLanguageTags(Ljava/lang/String;)Landroid/os/LocaleList;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v0, v1}, Landroidx/appcompat/widget/AppCompatTextHelper$Api24Impl;->setTextLocales(Landroid/widget/TextView;Landroid/os/LocaleList;)V
|
|
|
|
.line 249
|
|
:cond_12
|
|
iget-object v0, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
invoke-virtual {v0, v8, v9}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->loadFromAttributes(Landroid/util/AttributeSet;I)V
|
|
|
|
.line 251
|
|
sget-boolean v0, Landroidx/appcompat/widget/ViewUtils;->SDK_LEVEL_SUPPORTS_AUTOSIZE:Z
|
|
|
|
if-eqz v0, :cond_14
|
|
|
|
.line 253
|
|
iget-object v0, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->getAutoSizeTextType()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_14
|
|
|
|
.line 255
|
|
iget-object v0, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
.line 256
|
|
invoke-virtual {v0}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->getAutoSizeTextAvailableSizes()[I
|
|
|
|
move-result-object v0
|
|
|
|
.line 257
|
|
array-length v1, v0
|
|
|
|
if-lez v1, :cond_14
|
|
|
|
.line 258
|
|
iget-object v1, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
invoke-static {v1}, Landroidx/appcompat/widget/AppCompatTextHelper$Api26Impl;->getAutoSizeStepGranularity(Landroid/widget/TextView;)I
|
|
|
|
move-result v1
|
|
|
|
int-to-float v1, v1
|
|
|
|
const/high16 v2, -0x40800000 # -1.0f
|
|
|
|
cmpl-float v1, v1, v2
|
|
|
|
if-eqz v1, :cond_13
|
|
|
|
.line 262
|
|
iget-object v0, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
iget-object v1, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
.line 263
|
|
invoke-virtual {v1}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->getAutoSizeMinTextSize()I
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
.line 264
|
|
invoke-virtual {v2}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->getAutoSizeMaxTextSize()I
|
|
|
|
move-result v2
|
|
|
|
iget-object v3, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mAutoSizeTextHelper:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
|
|
.line 265
|
|
invoke-virtual {v3}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->getAutoSizeStepGranularity()I
|
|
|
|
move-result v3
|
|
|
|
.line 262
|
|
invoke-static {v0, v1, v2, v3, v12}, Landroidx/appcompat/widget/AppCompatTextHelper$Api26Impl;->setAutoSizeTextTypeUniformWithConfiguration(Landroid/widget/TextView;IIII)V
|
|
|
|
goto :goto_6
|
|
|
|
.line 268
|
|
:cond_13
|
|
iget-object v1, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
invoke-static {v1, v0, v12}, Landroidx/appcompat/widget/AppCompatTextHelper$Api26Impl;->setAutoSizeTextTypeUniformWithPresetSizes(Landroid/widget/TextView;[II)V
|
|
|
|
.line 276
|
|
:cond_14
|
|
:goto_6
|
|
sget-object v0, Landroidx/appcompat/R$styleable;->AppCompatTextView:[I
|
|
|
|
invoke-static {v10, v8, v0}, Landroidx/appcompat/widget/TintTypedArray;->obtainStyledAttributes(Landroid/content/Context;Landroid/util/AttributeSet;[I)Landroidx/appcompat/widget/TintTypedArray;
|
|
|
|
move-result-object v8
|
|
|
|
.line 281
|
|
sget v0, Landroidx/appcompat/R$styleable;->AppCompatTextView_drawableLeftCompat:I
|
|
|
|
invoke-virtual {v8, v0, v14}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
move-result v0
|
|
|
|
if-eq v0, v14, :cond_15
|
|
|
|
.line 284
|
|
invoke-virtual {v11, v10, v0}, Landroidx/appcompat/widget/AppCompatDrawableManager;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
move-object v1, v0
|
|
|
|
goto :goto_7
|
|
|
|
:cond_15
|
|
move-object v1, v13
|
|
|
|
.line 286
|
|
:goto_7
|
|
sget v0, Landroidx/appcompat/R$styleable;->AppCompatTextView_drawableTopCompat:I
|
|
|
|
invoke-virtual {v8, v0, v14}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
move-result v0
|
|
|
|
if-eq v0, v14, :cond_16
|
|
|
|
.line 289
|
|
invoke-virtual {v11, v10, v0}, Landroidx/appcompat/widget/AppCompatDrawableManager;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
move-object v2, v0
|
|
|
|
goto :goto_8
|
|
|
|
:cond_16
|
|
move-object v2, v13
|
|
|
|
.line 291
|
|
:goto_8
|
|
sget v0, Landroidx/appcompat/R$styleable;->AppCompatTextView_drawableRightCompat:I
|
|
|
|
invoke-virtual {v8, v0, v14}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
move-result v0
|
|
|
|
if-eq v0, v14, :cond_17
|
|
|
|
.line 294
|
|
invoke-virtual {v11, v10, v0}, Landroidx/appcompat/widget/AppCompatDrawableManager;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
move-object v3, v0
|
|
|
|
goto :goto_9
|
|
|
|
:cond_17
|
|
move-object v3, v13
|
|
|
|
.line 296
|
|
:goto_9
|
|
sget v0, Landroidx/appcompat/R$styleable;->AppCompatTextView_drawableBottomCompat:I
|
|
|
|
invoke-virtual {v8, v0, v14}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
move-result v0
|
|
|
|
if-eq v0, v14, :cond_18
|
|
|
|
.line 299
|
|
invoke-virtual {v11, v10, v0}, Landroidx/appcompat/widget/AppCompatDrawableManager;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
move-object v4, v0
|
|
|
|
goto :goto_a
|
|
|
|
:cond_18
|
|
move-object v4, v13
|
|
|
|
.line 301
|
|
:goto_a
|
|
sget v0, Landroidx/appcompat/R$styleable;->AppCompatTextView_drawableStartCompat:I
|
|
|
|
invoke-virtual {v8, v0, v14}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
move-result v0
|
|
|
|
if-eq v0, v14, :cond_19
|
|
|
|
.line 304
|
|
invoke-virtual {v11, v10, v0}, Landroidx/appcompat/widget/AppCompatDrawableManager;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
move-object v5, v0
|
|
|
|
goto :goto_b
|
|
|
|
:cond_19
|
|
move-object v5, v13
|
|
|
|
.line 306
|
|
:goto_b
|
|
sget v0, Landroidx/appcompat/R$styleable;->AppCompatTextView_drawableEndCompat:I
|
|
|
|
invoke-virtual {v8, v0, v14}, Landroidx/appcompat/widget/TintTypedArray;->getResourceId(II)I
|
|
|
|
move-result v0
|
|
|
|
if-eq v0, v14, :cond_1a
|
|
|
|
.line 309
|
|
invoke-virtual {v11, v10, v0}, Landroidx/appcompat/widget/AppCompatDrawableManager;->getDrawable(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
move-result-object v0
|
|
|
|
move-object v6, v0
|
|
|
|
goto :goto_c
|
|
|
|
:cond_1a
|
|
move-object v6, v13
|
|
|
|
:goto_c
|
|
move-object/from16 v0, p0
|
|
|
|
.line 311
|
|
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
|
|
|
|
.line 314
|
|
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_1b
|
|
|
|
.line 315
|
|
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
|
|
|
|
.line 317
|
|
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
|
|
|
|
.line 319
|
|
:cond_1b
|
|
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_1c
|
|
|
|
.line 320
|
|
sget v0, Landroidx/appcompat/R$styleable;->AppCompatTextView_drawableTintMode:I
|
|
|
|
.line 321
|
|
invoke-virtual {v8, v0, v14}, Landroidx/appcompat/widget/TintTypedArray;->getInt(II)I
|
|
|
|
move-result v0
|
|
|
|
.line 320
|
|
invoke-static {v0, v13}, Landroidx/appcompat/widget/DrawableUtils;->parseTintMode(ILandroid/graphics/PorterDuff$Mode;)Landroid/graphics/PorterDuff$Mode;
|
|
|
|
move-result-object v0
|
|
|
|
.line 322
|
|
iget-object v1, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
invoke-static {v1, v0}, Landroidx/core/widget/TextViewCompat;->setCompoundDrawableTintMode(Landroid/widget/TextView;Landroid/graphics/PorterDuff$Mode;)V
|
|
|
|
.line 325
|
|
:cond_1c
|
|
sget v0, Landroidx/appcompat/R$styleable;->AppCompatTextView_firstBaselineToTopHeight:I
|
|
|
|
invoke-virtual {v8, v0, v14}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result v0
|
|
|
|
.line 327
|
|
sget v1, Landroidx/appcompat/R$styleable;->AppCompatTextView_lastBaselineToBottomHeight:I
|
|
|
|
invoke-virtual {v8, v1, v14}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result v1
|
|
|
|
.line 329
|
|
sget v2, Landroidx/appcompat/R$styleable;->AppCompatTextView_lineHeight:I
|
|
|
|
invoke-virtual {v8, v2, v14}, Landroidx/appcompat/widget/TintTypedArray;->getDimensionPixelSize(II)I
|
|
|
|
move-result v2
|
|
|
|
.line 332
|
|
invoke-virtual {v8}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
|
|
|
|
if-eq v0, v14, :cond_1d
|
|
|
|
.line 334
|
|
iget-object v3, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
invoke-static {v3, v0}, Landroidx/core/widget/TextViewCompat;->setFirstBaselineToTopHeight(Landroid/widget/TextView;I)V
|
|
|
|
:cond_1d
|
|
if-eq v1, v14, :cond_1e
|
|
|
|
.line 337
|
|
iget-object v0, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
invoke-static {v0, v1}, Landroidx/core/widget/TextViewCompat;->setLastBaselineToBottomHeight(Landroid/widget/TextView;I)V
|
|
|
|
:cond_1e
|
|
if-eq v2, v14, :cond_1f
|
|
|
|
.line 340
|
|
iget-object v0, v7, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
invoke-static {v0, v2}, Landroidx/core/widget/TextViewCompat;->setLineHeight(Landroid/widget/TextView;I)V
|
|
|
|
:cond_1f
|
|
return-void
|
|
.end method
|
|
|
|
.method onAsyncTypefaceReceived(Ljava/lang/ref/WeakReference;Landroid/graphics/Typeface;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/ref/WeakReference<",
|
|
"Landroid/widget/TextView;",
|
|
">;",
|
|
"Landroid/graphics/Typeface;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 440
|
|
iget-boolean v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mAsyncFontPending:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 441
|
|
iput-object p2, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
.line 442
|
|
invoke-virtual {p1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/widget/TextView;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 444
|
|
invoke-static {p1}, Landroidx/core/view/ViewCompat;->isAttachedToWindow(Landroid/view/View;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 445
|
|
iget v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
|
|
|
|
.line 446
|
|
new-instance v1, Landroidx/appcompat/widget/AppCompatTextHelper$2;
|
|
|
|
invoke-direct {v1, p0, p1, p2, v0}, Landroidx/appcompat/widget/AppCompatTextHelper$2;-><init>(Landroidx/appcompat/widget/AppCompatTextHelper;Landroid/widget/TextView;Landroid/graphics/Typeface;I)V
|
|
|
|
invoke-virtual {p1, v1}, Landroid/widget/TextView;->post(Ljava/lang/Runnable;)Z
|
|
|
|
goto :goto_0
|
|
|
|
.line 453
|
|
:cond_0
|
|
iget v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mStyle:I
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;I)V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method onLayout(ZIIII)V
|
|
.locals 0
|
|
|
|
.line 564
|
|
sget-boolean p1, Landroidx/appcompat/widget/ViewUtils;->SDK_LEVEL_SUPPORTS_AUTOSIZE:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 565
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/AppCompatTextHelper;->autoSizeText()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method onSetCompoundDrawables()V
|
|
.locals 0
|
|
|
|
.line 522
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/AppCompatTextHelper;->applyCompoundDrawablesTints()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method onSetTextAppearance(Landroid/content/Context;I)V
|
|
.locals 3
|
|
|
|
.line 460
|
|
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
|
|
|
|
.line 462
|
|
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
|
|
|
|
.line 467
|
|
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
|
|
|
|
.line 495
|
|
:cond_0
|
|
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_1
|
|
|
|
.line 496
|
|
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_1
|
|
|
|
.line 497
|
|
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
|
|
|
|
.line 501
|
|
:cond_1
|
|
invoke-direct {p0, p1, p2}, Landroidx/appcompat/widget/AppCompatTextHelper;->updateTypefaceAndStyle(Landroid/content/Context;Landroidx/appcompat/widget/TintTypedArray;)V
|
|
|
|
.line 503
|
|
sget p1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v0, 0x1a
|
|
|
|
if-lt p1, v0, :cond_2
|
|
|
|
sget p1, Landroidx/appcompat/R$styleable;->TextAppearance_fontVariationSettings:I
|
|
|
|
.line 504
|
|
invoke-virtual {p2, p1}, Landroidx/appcompat/widget/TintTypedArray;->hasValue(I)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 505
|
|
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_2
|
|
|
|
.line 508
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mView:Landroid/widget/TextView;
|
|
|
|
invoke-static {v0, p1}, Landroidx/appcompat/widget/AppCompatTextHelper$Api26Impl;->setFontVariationSettings(Landroid/widget/TextView;Ljava/lang/String;)Z
|
|
|
|
.line 511
|
|
:cond_2
|
|
invoke-virtual {p2}, Landroidx/appcompat/widget/TintTypedArray;->recycle()V
|
|
|
|
.line 512
|
|
iget-object p1, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mFontTypeface:Landroid/graphics/Typeface;
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
.line 513
|
|
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
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method populateSurroundingTextIfNeeded(Landroid/widget/TextView;Landroid/view/inputmethod/InputConnection;Landroid/view/inputmethod/EditorInfo;)V
|
|
.locals 2
|
|
|
|
.line 721
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1e
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 722
|
|
invoke-virtual {p1}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p3, p1}, Landroidx/core/view/inputmethod/EditorInfoCompat;->setInitialSurroundingText(Landroid/view/inputmethod/EditorInfo;Ljava/lang/CharSequence;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method setAllCaps(Z)V
|
|
.locals 1
|
|
|
|
.line 518
|
|
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
|
|
|
|
.line 604
|
|
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
|
|
|
|
.line 610
|
|
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
|
|
|
|
.line 596
|
|
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 setCompoundDrawableTintList(Landroid/content/res/ColorStateList;)V
|
|
.locals 1
|
|
|
|
.line 640
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 641
|
|
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;
|
|
|
|
.line 643
|
|
: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;
|
|
|
|
.line 644
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
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
|
|
|
|
.line 645
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/AppCompatTextHelper;->setCompoundTints()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method setCompoundDrawableTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
.locals 1
|
|
|
|
.line 654
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 655
|
|
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;
|
|
|
|
.line 657
|
|
: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;
|
|
|
|
.line 658
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextHelper;->mDrawableTint:Landroidx/appcompat/widget/TintInfo;
|
|
|
|
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
|
|
|
|
.line 659
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/AppCompatTextHelper;->setCompoundTints()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method setTextSize(IF)V
|
|
.locals 1
|
|
|
|
.line 572
|
|
sget-boolean v0, Landroidx/appcompat/widget/ViewUtils;->SDK_LEVEL_SUPPORTS_AUTOSIZE:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 573
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/AppCompatTextHelper;->isAutoSizeEnabled()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 574
|
|
invoke-direct {p0, p1, p2}, Landroidx/appcompat/widget/AppCompatTextHelper;->setTextSizeInternal(IF)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|