* Decompile and recreate Soul Browser v1.4.85 with APK CI builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix CI build: include bundled google.jks and remove PR trigger The apktool build failed in CI because app/unknown/.../google.jks was excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files and commit the missing resource. Also remove the redundant pull_request workflow trigger. Co-authored-by: KaKi87 <KaKi87@pm.me> * Change package ID to com.github.kaki87.soulbrowser Rename the application ID so the rebuilt APK can be installed alongside the original Soul Browser from Google Play. - Update AndroidManifest package, permissions, providers, and actions - Update R class references in smali (com/github/kaki87/soulbrowser/R) - Update shortcuts.xml targetPackage - Rename app label to "Soul Rebuild" for easy identification Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install compatibility: remove split APK metadata and bundle native libs The rebuilt APK still declared requiredSplitTypes and Play Store split metadata, causing Android to reject standalone installs as incompatible. - Remove requiredSplitTypes and split-related manifest meta-data - Merge native libs from all ABI splits with uncompressed storage - Page-align before signing for extractNativeLibs=false - Add .so to apktool doNotCompress list Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix install failure: use apksigner v2/v3 and bundle arm64 native libs Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only produces v1 signatures, causing Android to reject the install. - Sign with apksigner (v1+v2+v3) instead of jarsigner - Add arm64-v8a native libraries from universal Soul Browser 1.4.79 - Set extractNativeLibs=true for reliable sideload installs - Commit stable debug keystore for consistent signatures across builds Co-authored-by: KaKi87 <KaKi87@pm.me> * Add committed debug keystore for consistent APK signatures Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix startup crash: use original classes2.dex desugar libraries Apktool recompiles smali_classes2 into a broken classes2.dex, causing ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init. Inject the original classes2.dex (Java 8+ desugar libs) after apktool build instead of using the recompiled version. Co-authored-by: KaKi87 <KaKi87@pm.me> * Fix missing drawable resources from density split APKs The base APK is an app bundle module; density-specific drawables like seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild, causing Resources$NotFoundException at runtime. - Merge non-9-patch resources from split APKs before apktool build - Sync public.xml IDs from R smali only when backing files exist - Add 713 density-specific resource IDs to public.xml Co-authored-by: KaKi87 <KaKi87@pm.me> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1943 lines
37 KiB
Smali
1943 lines
37 KiB
Smali
.class Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper$Impl29;,
|
|
Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper$Impl;,
|
|
Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper$Impl23;,
|
|
Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper$Api23Impl;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final l:Landroid/graphics/RectF;
|
|
|
|
.field public static final m:Lj$/util/concurrent/ConcurrentHashMap;
|
|
|
|
|
|
# instance fields
|
|
.field public a:I
|
|
|
|
.field public b:Z
|
|
|
|
.field public c:F
|
|
|
|
.field public d:F
|
|
|
|
.field public e:F
|
|
|
|
.field public f:[I
|
|
|
|
.field public g:Z
|
|
|
|
.field public h:Landroid/text/TextPaint;
|
|
|
|
.field public final i:Landroid/widget/TextView;
|
|
|
|
.field public final j:Landroid/content/Context;
|
|
|
|
.field public final k:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper$Impl23;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Landroid/graphics/RectF;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {v0}, Landroid/graphics/RectF;-><init>()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
sput-object v0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->l:Landroid/graphics/RectF;
|
|
|
|
.line 7
|
|
.line 8
|
|
new-instance v0, Lj$/util/concurrent/ConcurrentHashMap;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-direct {v0}, Lj$/util/concurrent/ConcurrentHashMap;-><init>()V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
sput-object v0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->m:Lj$/util/concurrent/ConcurrentHashMap;
|
|
|
|
.line 14
|
|
.line 15
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Landroid/widget/TextView;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
const/4 v0, 0x0
|
|
|
|
.line 5
|
|
iput v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->a:I
|
|
|
|
.line 6
|
|
.line 7
|
|
iput-boolean v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->b:Z
|
|
|
|
.line 8
|
|
.line 9
|
|
const/high16 v1, -0x40800000 # -1.0f
|
|
|
|
.line 10
|
|
.line 11
|
|
iput v1, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->c:F
|
|
|
|
.line 12
|
|
.line 13
|
|
iput v1, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->d:F
|
|
|
|
.line 14
|
|
.line 15
|
|
iput v1, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->e:F
|
|
|
|
.line 16
|
|
.line 17
|
|
new-array v1, v0, [I
|
|
|
|
.line 18
|
|
.line 19
|
|
iput-object v1, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->f:[I
|
|
|
|
.line 20
|
|
.line 21
|
|
iput-boolean v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->g:Z
|
|
|
|
.line 22
|
|
.line 23
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->i:Landroid/widget/TextView;
|
|
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result-object p1
|
|
|
|
.line 29
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->j:Landroid/content/Context;
|
|
|
|
.line 30
|
|
.line 31
|
|
sget p1, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 32
|
|
.line 33
|
|
const/16 v0, 0x1d
|
|
|
|
.line 34
|
|
.line 35
|
|
if-lt p1, v0, :cond_0
|
|
|
|
.line 36
|
|
.line 37
|
|
new-instance p1, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper$Impl29;
|
|
|
|
.line 38
|
|
.line 39
|
|
invoke-direct {p1}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper$Impl29;-><init>()V
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->k:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper$Impl23;
|
|
|
|
.line 43
|
|
.line 44
|
|
return-void
|
|
|
|
.line 45
|
|
:cond_0
|
|
new-instance p1, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper$Impl23;
|
|
|
|
.line 46
|
|
.line 47
|
|
invoke-direct {p1}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper$Impl23;-><init>()V
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
iput-object p1, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->k:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper$Impl23;
|
|
|
|
.line 51
|
|
.line 52
|
|
return-void
|
|
.end method
|
|
|
|
.method public static b([I)[I
|
|
.locals 6
|
|
|
|
.line 1
|
|
array-length v0, p0
|
|
|
|
.line 2
|
|
if-nez v0, :cond_0
|
|
|
|
.line 3
|
|
.line 4
|
|
goto :goto_1
|
|
|
|
.line 5
|
|
:cond_0
|
|
invoke-static {p0}, Ljava/util/Arrays;->sort([I)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
const/4 v2, 0x0
|
|
|
|
.line 14
|
|
move v3, v2
|
|
|
|
.line 15
|
|
:goto_0
|
|
if-ge v3, v0, :cond_2
|
|
|
|
.line 16
|
|
.line 17
|
|
aget v4, p0, v3
|
|
|
|
.line 18
|
|
.line 19
|
|
if-lez v4, :cond_1
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result-object v5
|
|
|
|
.line 25
|
|
invoke-static {v1, v5}, Ljava/util/Collections;->binarySearch(Ljava/util/List;Ljava/lang/Object;)I
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result v5
|
|
|
|
.line 29
|
|
if-gez v5, :cond_1
|
|
|
|
.line 30
|
|
.line 31
|
|
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result-object v4
|
|
|
|
.line 35
|
|
invoke-virtual {v1, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
:cond_1
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
.line 39
|
|
.line 40
|
|
goto :goto_0
|
|
|
|
.line 41
|
|
:cond_2
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result v3
|
|
|
|
.line 45
|
|
if-ne v0, v3, :cond_3
|
|
|
|
.line 46
|
|
.line 47
|
|
:goto_1
|
|
return-object p0
|
|
|
|
.line 48
|
|
:cond_3
|
|
invoke-virtual {v1}, Ljava/util/ArrayList;->size()I
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
move-result p0
|
|
|
|
.line 52
|
|
new-array v0, p0, [I
|
|
|
|
.line 53
|
|
.line 54
|
|
:goto_2
|
|
if-ge v2, p0, :cond_4
|
|
|
|
.line 55
|
|
.line 56
|
|
invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
move-result-object v3
|
|
|
|
.line 60
|
|
check-cast v3, Ljava/lang/Integer;
|
|
|
|
.line 61
|
|
.line 62
|
|
invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
move-result v3
|
|
|
|
.line 66
|
|
aput v3, v0, v2
|
|
|
|
.line 67
|
|
.line 68
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
.line 69
|
|
.line 70
|
|
goto :goto_2
|
|
|
|
.line 71
|
|
:cond_4
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static d(Ljava/lang/String;)Ljava/lang/reflect/Method;
|
|
.locals 4
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
:try_start_0
|
|
sget-object v1, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->m:Lj$/util/concurrent/ConcurrentHashMap;
|
|
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {v1, p0}, Lj$/util/concurrent/ConcurrentHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result-object v2
|
|
|
|
.line 8
|
|
check-cast v2, Ljava/lang/reflect/Method;
|
|
|
|
.line 9
|
|
.line 10
|
|
if-nez v2, :cond_0
|
|
|
|
.line 11
|
|
.line 12
|
|
const-class v2, Landroid/widget/TextView;
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {v2, p0, v0}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object v2
|
|
|
|
.line 18
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 19
|
|
.line 20
|
|
const/4 v3, 0x1
|
|
|
|
.line 21
|
|
invoke-virtual {v2, v3}, Ljava/lang/reflect/AccessibleObject;->setAccessible(Z)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
invoke-virtual {v1, p0, v2}, Lj$/util/concurrent/ConcurrentHashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
return-object v2
|
|
|
|
.line 28
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
.line 29
|
|
goto :goto_0
|
|
|
|
.line 30
|
|
:cond_0
|
|
return-object v2
|
|
|
|
.line 31
|
|
:goto_0
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
.line 32
|
|
.line 33
|
|
const-string v3, "Failed to retrieve TextView#"
|
|
|
|
.line 34
|
|
.line 35
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
const-string p0, "() method"
|
|
|
|
.line 42
|
|
.line 43
|
|
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
move-result-object p0
|
|
|
|
.line 50
|
|
const-string v2, "ACTVAutoSizeHelper"
|
|
|
|
.line 51
|
|
.line 52
|
|
invoke-static {v2, p0, v1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static e(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
.locals 2
|
|
|
|
.line 1
|
|
:try_start_0
|
|
invoke-static {p2}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->d(Ljava/lang/String;)Ljava/lang/reflect/Method;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
const/4 v1, 0x0
|
|
|
|
.line 6
|
|
invoke-virtual {v0, p0, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-object p0
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 10
|
|
return-object p0
|
|
|
|
.line 11
|
|
:catch_0
|
|
move-exception p0
|
|
|
|
.line 12
|
|
goto :goto_0
|
|
|
|
.line 13
|
|
:catchall_0
|
|
move-exception p0
|
|
|
|
.line 14
|
|
throw p0
|
|
|
|
.line 15
|
|
:goto_0
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
.line 16
|
|
.line 17
|
|
const-string v1, "Failed to invoke TextView#"
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
const-string p2, "() method"
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
move-result-object p2
|
|
|
|
.line 34
|
|
const-string v0, "ACTVAutoSizeHelper"
|
|
|
|
.line 35
|
|
.line 36
|
|
invoke-static {v0, p2, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
return-object p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->f()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-nez v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
goto/16 :goto_3
|
|
|
|
.line 8
|
|
.line 9
|
|
:cond_0
|
|
iget-boolean v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->b:Z
|
|
|
|
.line 10
|
|
.line 11
|
|
if-eqz v0, :cond_6
|
|
|
|
.line 12
|
|
.line 13
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->i:Landroid/widget/TextView;
|
|
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {v0}, Landroid/view/View;->getMeasuredHeight()I
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result v0
|
|
|
|
.line 19
|
|
if-lez v0, :cond_5
|
|
|
|
.line 20
|
|
.line 21
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->i:Landroid/widget/TextView;
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {v0}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result v0
|
|
|
|
.line 27
|
|
if-gtz v0, :cond_1
|
|
|
|
.line 28
|
|
.line 29
|
|
goto :goto_3
|
|
|
|
.line 30
|
|
:cond_1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->k:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper$Impl23;
|
|
|
|
.line 31
|
|
.line 32
|
|
iget-object v1, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->i:Landroid/widget/TextView;
|
|
|
|
.line 33
|
|
.line 34
|
|
invoke-virtual {v0, v1}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper$Impl;->b(Landroid/widget/TextView;)Z
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result v0
|
|
|
|
.line 38
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 39
|
|
.line 40
|
|
const/high16 v0, 0x100000
|
|
|
|
.line 41
|
|
.line 42
|
|
goto :goto_0
|
|
|
|
.line 43
|
|
:cond_2
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->i:Landroid/widget/TextView;
|
|
|
|
.line 44
|
|
.line 45
|
|
invoke-virtual {v0}, Landroid/view/View;->getMeasuredWidth()I
|
|
|
|
.line 46
|
|
.line 47
|
|
.line 48
|
|
move-result v0
|
|
|
|
.line 49
|
|
iget-object v1, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->i:Landroid/widget/TextView;
|
|
|
|
.line 50
|
|
.line 51
|
|
invoke-virtual {v1}, Landroid/widget/TextView;->getTotalPaddingLeft()I
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
move-result v1
|
|
|
|
.line 55
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 56
|
|
iget-object v1, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->i:Landroid/widget/TextView;
|
|
|
|
.line 57
|
|
.line 58
|
|
invoke-virtual {v1}, Landroid/widget/TextView;->getTotalPaddingRight()I
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
move-result v1
|
|
|
|
.line 62
|
|
sub-int/2addr v0, v1
|
|
|
|
.line 63
|
|
:goto_0
|
|
iget-object v1, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->i:Landroid/widget/TextView;
|
|
|
|
.line 64
|
|
.line 65
|
|
invoke-virtual {v1}, Landroid/view/View;->getHeight()I
|
|
|
|
.line 66
|
|
.line 67
|
|
.line 68
|
|
move-result v1
|
|
|
|
.line 69
|
|
iget-object v2, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->i:Landroid/widget/TextView;
|
|
|
|
.line 70
|
|
.line 71
|
|
invoke-virtual {v2}, Landroid/widget/TextView;->getCompoundPaddingBottom()I
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
move-result v2
|
|
|
|
.line 75
|
|
sub-int/2addr v1, v2
|
|
|
|
.line 76
|
|
iget-object v2, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->i:Landroid/widget/TextView;
|
|
|
|
.line 77
|
|
.line 78
|
|
invoke-virtual {v2}, Landroid/widget/TextView;->getCompoundPaddingTop()I
|
|
|
|
.line 79
|
|
.line 80
|
|
.line 81
|
|
move-result v2
|
|
|
|
.line 82
|
|
sub-int/2addr v1, v2
|
|
|
|
.line 83
|
|
if-lez v0, :cond_5
|
|
|
|
.line 84
|
|
.line 85
|
|
if-gtz v1, :cond_3
|
|
|
|
.line 86
|
|
.line 87
|
|
goto :goto_3
|
|
|
|
.line 88
|
|
:cond_3
|
|
sget-object v2, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->l:Landroid/graphics/RectF;
|
|
|
|
.line 89
|
|
.line 90
|
|
monitor-enter v2
|
|
|
|
.line 91
|
|
:try_start_0
|
|
invoke-virtual {v2}, Landroid/graphics/RectF;->setEmpty()V
|
|
|
|
.line 92
|
|
.line 93
|
|
.line 94
|
|
int-to-float v0, v0
|
|
|
|
.line 95
|
|
iput v0, v2, Landroid/graphics/RectF;->right:F
|
|
|
|
.line 96
|
|
.line 97
|
|
int-to-float v0, v1
|
|
|
|
.line 98
|
|
iput v0, v2, Landroid/graphics/RectF;->bottom:F
|
|
|
|
.line 99
|
|
.line 100
|
|
invoke-virtual {p0, v2}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->c(Landroid/graphics/RectF;)I
|
|
|
|
.line 101
|
|
.line 102
|
|
.line 103
|
|
move-result v0
|
|
|
|
.line 104
|
|
int-to-float v0, v0
|
|
|
|
.line 105
|
|
iget-object v1, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->i:Landroid/widget/TextView;
|
|
|
|
.line 106
|
|
.line 107
|
|
invoke-virtual {v1}, Landroid/widget/TextView;->getTextSize()F
|
|
|
|
.line 108
|
|
.line 109
|
|
.line 110
|
|
move-result v1
|
|
|
|
.line 111
|
|
cmpl-float v1, v0, v1
|
|
|
|
.line 112
|
|
.line 113
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 114
|
|
.line 115
|
|
const/4 v1, 0x0
|
|
|
|
.line 116
|
|
invoke-virtual {p0, v0, v1}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->g(FI)V
|
|
|
|
.line 117
|
|
.line 118
|
|
.line 119
|
|
goto :goto_1
|
|
|
|
.line 120
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
.line 121
|
|
goto :goto_2
|
|
|
|
.line 122
|
|
:cond_4
|
|
:goto_1
|
|
monitor-exit v2
|
|
|
|
.line 123
|
|
goto :goto_4
|
|
|
|
.line 124
|
|
:goto_2
|
|
monitor-exit v2
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 125
|
|
throw v0
|
|
|
|
.line 126
|
|
:cond_5
|
|
:goto_3
|
|
return-void
|
|
|
|
.line 127
|
|
:cond_6
|
|
:goto_4
|
|
const/4 v0, 0x1
|
|
|
|
.line 128
|
|
iput-boolean v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->b:Z
|
|
|
|
.line 129
|
|
.line 130
|
|
return-void
|
|
.end method
|
|
|
|
.method public final c(Landroid/graphics/RectF;)I
|
|
.locals 18
|
|
|
|
.line 1
|
|
move-object/from16 v0, p0
|
|
|
|
.line 2
|
|
.line 3
|
|
move-object/from16 v1, p1
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v2, v0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->f:[I
|
|
|
|
.line 6
|
|
.line 7
|
|
array-length v2, v2
|
|
|
|
.line 8
|
|
if-eqz v2, :cond_6
|
|
|
|
.line 9
|
|
.line 10
|
|
const/4 v3, 0x1
|
|
|
|
.line 11
|
|
sub-int/2addr v2, v3
|
|
|
|
.line 12
|
|
const/4 v4, 0x0
|
|
|
|
.line 13
|
|
move v5, v4
|
|
|
|
.line 14
|
|
move v4, v3
|
|
|
|
.line 15
|
|
:goto_0
|
|
if-gt v4, v2, :cond_5
|
|
|
|
.line 16
|
|
.line 17
|
|
add-int v5, v4, v2
|
|
|
|
.line 18
|
|
.line 19
|
|
div-int/lit8 v5, v5, 0x2
|
|
|
|
.line 20
|
|
.line 21
|
|
iget-object v6, v0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->f:[I
|
|
|
|
.line 22
|
|
.line 23
|
|
aget v6, v6, v5
|
|
|
|
.line 24
|
|
.line 25
|
|
iget-object v7, v0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->i:Landroid/widget/TextView;
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-virtual {v7}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
move-result-object v8
|
|
|
|
.line 31
|
|
invoke-virtual {v7}, Landroid/widget/TextView;->getTransformationMethod()Landroid/text/method/TransformationMethod;
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result-object v9
|
|
|
|
.line 35
|
|
if-eqz v9, :cond_0
|
|
|
|
.line 36
|
|
.line 37
|
|
invoke-interface {v9, v8, v7}, Landroid/text/method/TransformationMethod;->getTransformation(Ljava/lang/CharSequence;Landroid/view/View;)Ljava/lang/CharSequence;
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
move-result-object v9
|
|
|
|
.line 41
|
|
if-eqz v9, :cond_0
|
|
|
|
.line 42
|
|
.line 43
|
|
move-object v10, v9
|
|
|
|
.line 44
|
|
goto :goto_1
|
|
|
|
.line 45
|
|
:cond_0
|
|
move-object v10, v8
|
|
|
|
.line 46
|
|
:goto_1
|
|
invoke-virtual {v7}, Landroid/widget/TextView;->getMaxLines()I
|
|
|
|
.line 47
|
|
.line 48
|
|
.line 49
|
|
move-result v13
|
|
|
|
.line 50
|
|
iget-object v8, v0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->h:Landroid/text/TextPaint;
|
|
|
|
.line 51
|
|
.line 52
|
|
if-nez v8, :cond_1
|
|
|
|
.line 53
|
|
.line 54
|
|
new-instance v8, Landroid/text/TextPaint;
|
|
|
|
.line 55
|
|
.line 56
|
|
invoke-direct {v8}, Landroid/text/TextPaint;-><init>()V
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
iput-object v8, v0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->h:Landroid/text/TextPaint;
|
|
|
|
.line 60
|
|
.line 61
|
|
goto :goto_2
|
|
|
|
.line 62
|
|
:cond_1
|
|
invoke-virtual {v8}, Landroid/graphics/Paint;->reset()V
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
:goto_2
|
|
iget-object v8, v0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->h:Landroid/text/TextPaint;
|
|
|
|
.line 66
|
|
.line 67
|
|
invoke-virtual {v7}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;
|
|
|
|
.line 68
|
|
.line 69
|
|
.line 70
|
|
move-result-object v9
|
|
|
|
.line 71
|
|
invoke-virtual {v8, v9}, Landroid/text/TextPaint;->set(Landroid/text/TextPaint;)V
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
iget-object v8, v0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->h:Landroid/text/TextPaint;
|
|
|
|
.line 75
|
|
.line 76
|
|
int-to-float v6, v6
|
|
|
|
.line 77
|
|
invoke-virtual {v8, v6}, Landroid/graphics/Paint;->setTextSize(F)V
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
const-string v6, "getLayoutAlignment"
|
|
|
|
.line 81
|
|
.line 82
|
|
sget-object v8, Landroid/text/Layout$Alignment;->ALIGN_NORMAL:Landroid/text/Layout$Alignment;
|
|
|
|
.line 83
|
|
.line 84
|
|
invoke-static {v7, v8, v6}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->e(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 85
|
|
.line 86
|
|
.line 87
|
|
move-result-object v6
|
|
|
|
.line 88
|
|
move-object v11, v6
|
|
|
|
.line 89
|
|
check-cast v11, Landroid/text/Layout$Alignment;
|
|
|
|
.line 90
|
|
.line 91
|
|
iget v6, v1, Landroid/graphics/RectF;->right:F
|
|
|
|
.line 92
|
|
.line 93
|
|
invoke-static {v6}, Ljava/lang/Math;->round(F)I
|
|
|
|
.line 94
|
|
.line 95
|
|
.line 96
|
|
move-result v12
|
|
|
|
.line 97
|
|
iget-object v15, v0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->h:Landroid/text/TextPaint;
|
|
|
|
.line 98
|
|
.line 99
|
|
iget-object v6, v0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->k:Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper$Impl23;
|
|
|
|
.line 100
|
|
.line 101
|
|
iget-object v14, v0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->i:Landroid/widget/TextView;
|
|
|
|
.line 102
|
|
.line 103
|
|
move-object/from16 v16, v6
|
|
|
|
.line 104
|
|
.line 105
|
|
invoke-static/range {v10 .. v16}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper$Api23Impl;->a(Ljava/lang/CharSequence;Landroid/text/Layout$Alignment;IILandroid/widget/TextView;Landroid/text/TextPaint;Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper$Impl;)Landroid/text/StaticLayout;
|
|
|
|
.line 106
|
|
.line 107
|
|
.line 108
|
|
move-result-object v6
|
|
|
|
.line 109
|
|
const/4 v7, -0x1
|
|
|
|
.line 110
|
|
if-eq v13, v7, :cond_2
|
|
|
|
.line 111
|
|
.line 112
|
|
invoke-virtual {v6}, Landroid/text/StaticLayout;->getLineCount()I
|
|
|
|
.line 113
|
|
.line 114
|
|
.line 115
|
|
move-result v7
|
|
|
|
.line 116
|
|
if-gt v7, v13, :cond_3
|
|
|
|
.line 117
|
|
.line 118
|
|
invoke-virtual {v6}, Landroid/text/StaticLayout;->getLineCount()I
|
|
|
|
.line 119
|
|
.line 120
|
|
.line 121
|
|
move-result v7
|
|
|
|
.line 122
|
|
sub-int/2addr v7, v3
|
|
|
|
.line 123
|
|
invoke-virtual {v6, v7}, Landroid/text/Layout;->getLineEnd(I)I
|
|
|
|
.line 124
|
|
.line 125
|
|
.line 126
|
|
move-result v7
|
|
|
|
.line 127
|
|
invoke-interface {v10}, Ljava/lang/CharSequence;->length()I
|
|
|
|
.line 128
|
|
.line 129
|
|
.line 130
|
|
move-result v8
|
|
|
|
.line 131
|
|
if-eq v7, v8, :cond_2
|
|
|
|
.line 132
|
|
.line 133
|
|
goto :goto_3
|
|
|
|
.line 134
|
|
:cond_2
|
|
invoke-virtual {v6}, Landroid/text/Layout;->getHeight()I
|
|
|
|
.line 135
|
|
.line 136
|
|
.line 137
|
|
move-result v6
|
|
|
|
.line 138
|
|
int-to-float v6, v6
|
|
|
|
.line 139
|
|
iget v7, v1, Landroid/graphics/RectF;->bottom:F
|
|
|
|
.line 140
|
|
.line 141
|
|
cmpl-float v6, v6, v7
|
|
|
|
.line 142
|
|
.line 143
|
|
if-lez v6, :cond_4
|
|
|
|
.line 144
|
|
.line 145
|
|
:cond_3
|
|
:goto_3
|
|
add-int/lit8 v5, v5, -0x1
|
|
|
|
.line 146
|
|
.line 147
|
|
move v2, v5
|
|
|
|
.line 148
|
|
goto/16 :goto_0
|
|
|
|
.line 149
|
|
.line 150
|
|
:cond_4
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
.line 151
|
|
.line 152
|
|
move/from16 v17, v5
|
|
|
|
.line 153
|
|
.line 154
|
|
move v5, v4
|
|
|
|
.line 155
|
|
move/from16 v4, v17
|
|
|
|
.line 156
|
|
.line 157
|
|
goto/16 :goto_0
|
|
|
|
.line 158
|
|
.line 159
|
|
:cond_5
|
|
iget-object v1, v0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->f:[I
|
|
|
|
.line 160
|
|
.line 161
|
|
aget v1, v1, v5
|
|
|
|
.line 162
|
|
.line 163
|
|
return v1
|
|
|
|
.line 164
|
|
:cond_6
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
.line 165
|
|
.line 166
|
|
const-string v2, "No available text sizes to choose from."
|
|
|
|
.line 167
|
|
.line 168
|
|
invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 169
|
|
.line 170
|
|
.line 171
|
|
throw v1
|
|
.end method
|
|
|
|
.method public final f()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->j()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
iget v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->a:I
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
const/4 v0, 0x1
|
|
|
|
.line 12
|
|
return v0
|
|
|
|
.line 13
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 14
|
|
return v0
|
|
.end method
|
|
|
|
.method public final g(FI)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->j:Landroid/content/Context;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-static {}, Landroid/content/res/Resources;->getSystem()Landroid/content/res/Resources;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v0
|
|
|
|
.line 9
|
|
goto :goto_0
|
|
|
|
.line 10
|
|
:cond_0
|
|
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
move-result-object v0
|
|
|
|
.line 14
|
|
:goto_0
|
|
invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object v0
|
|
|
|
.line 18
|
|
invoke-static {p2, p1, v0}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result p1
|
|
|
|
.line 22
|
|
iget-object p2, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->i:Landroid/widget/TextView;
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-virtual {p2}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
move-result-object v0
|
|
|
|
.line 28
|
|
invoke-virtual {v0}, Landroid/graphics/Paint;->getTextSize()F
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result v0
|
|
|
|
.line 32
|
|
cmpl-float v0, p1, v0
|
|
|
|
.line 33
|
|
.line 34
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 35
|
|
.line 36
|
|
invoke-virtual {p2}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
move-result-object v0
|
|
|
|
.line 40
|
|
invoke-virtual {v0, p1}, Landroid/graphics/Paint;->setTextSize(F)V
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
invoke-virtual {p2}, Landroid/view/View;->isInLayout()Z
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
move-result p1
|
|
|
|
.line 47
|
|
invoke-virtual {p2}, Landroid/widget/TextView;->getLayout()Landroid/text/Layout;
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
move-result-object v0
|
|
|
|
.line 51
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 52
|
|
.line 53
|
|
const/4 v0, 0x0
|
|
|
|
.line 54
|
|
iput-boolean v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->b:Z
|
|
|
|
.line 55
|
|
.line 56
|
|
:try_start_0
|
|
const-string v0, "nullLayouts"
|
|
|
|
.line 57
|
|
.line 58
|
|
invoke-static {v0}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->d(Ljava/lang/String;)Ljava/lang/reflect/Method;
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
move-result-object v0
|
|
|
|
.line 62
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 63
|
|
.line 64
|
|
const/4 v1, 0x0
|
|
|
|
.line 65
|
|
invoke-virtual {v0, p2, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 66
|
|
.line 67
|
|
.line 68
|
|
goto :goto_1
|
|
|
|
.line 69
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 70
|
|
const-string v1, "ACTVAutoSizeHelper"
|
|
|
|
.line 71
|
|
.line 72
|
|
const-string v2, "Failed to invoke TextView#nullLayouts() method"
|
|
|
|
.line 73
|
|
.line 74
|
|
invoke-static {v1, v2, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
|
|
|
|
.line 75
|
|
.line 76
|
|
.line 77
|
|
:cond_1
|
|
:goto_1
|
|
if-nez p1, :cond_2
|
|
|
|
.line 78
|
|
.line 79
|
|
invoke-virtual {p2}, Landroid/view/View;->requestLayout()V
|
|
|
|
.line 80
|
|
.line 81
|
|
.line 82
|
|
goto :goto_2
|
|
|
|
.line 83
|
|
:cond_2
|
|
invoke-virtual {p2}, Landroid/view/View;->forceLayout()V
|
|
|
|
.line 84
|
|
.line 85
|
|
.line 86
|
|
:goto_2
|
|
invoke-virtual {p2}, Landroid/view/View;->invalidate()V
|
|
|
|
.line 87
|
|
.line 88
|
|
.line 89
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public final h()Z
|
|
.locals 7
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->j()Z
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result v0
|
|
|
|
.line 5
|
|
const/4 v1, 0x0
|
|
|
|
.line 6
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 7
|
|
.line 8
|
|
iget v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->a:I
|
|
|
|
.line 9
|
|
.line 10
|
|
const/4 v2, 0x1
|
|
|
|
.line 11
|
|
if-ne v0, v2, :cond_3
|
|
|
|
.line 12
|
|
.line 13
|
|
iget-boolean v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->g:Z
|
|
|
|
.line 14
|
|
.line 15
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->f:[I
|
|
|
|
.line 18
|
|
.line 19
|
|
array-length v0, v0
|
|
|
|
.line 20
|
|
if-nez v0, :cond_2
|
|
|
|
.line 21
|
|
.line 22
|
|
:cond_0
|
|
iget v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->e:F
|
|
|
|
.line 23
|
|
.line 24
|
|
iget v3, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->d:F
|
|
|
|
.line 25
|
|
.line 26
|
|
sub-float/2addr v0, v3
|
|
|
|
.line 27
|
|
iget v3, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->c:F
|
|
|
|
.line 28
|
|
.line 29
|
|
div-float/2addr v0, v3
|
|
|
|
.line 30
|
|
float-to-double v3, v0
|
|
|
|
.line 31
|
|
invoke-static {v3, v4}, Ljava/lang/Math;->floor(D)D
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result-wide v3
|
|
|
|
.line 35
|
|
double-to-int v0, v3
|
|
|
|
.line 36
|
|
add-int/2addr v0, v2
|
|
|
|
.line 37
|
|
new-array v3, v0, [I
|
|
|
|
.line 38
|
|
.line 39
|
|
:goto_0
|
|
if-ge v1, v0, :cond_1
|
|
|
|
.line 40
|
|
.line 41
|
|
iget v4, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->d:F
|
|
|
|
.line 42
|
|
.line 43
|
|
int-to-float v5, v1
|
|
|
|
.line 44
|
|
iget v6, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->c:F
|
|
|
|
.line 45
|
|
.line 46
|
|
mul-float/2addr v5, v6
|
|
|
|
.line 47
|
|
add-float/2addr v5, v4
|
|
|
|
.line 48
|
|
invoke-static {v5}, Ljava/lang/Math;->round(F)I
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
move-result v4
|
|
|
|
.line 52
|
|
aput v4, v3, v1
|
|
|
|
.line 53
|
|
.line 54
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
.line 55
|
|
.line 56
|
|
goto :goto_0
|
|
|
|
.line 57
|
|
:cond_1
|
|
invoke-static {v3}, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->b([I)[I
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
move-result-object v0
|
|
|
|
.line 61
|
|
iput-object v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->f:[I
|
|
|
|
.line 62
|
|
.line 63
|
|
:cond_2
|
|
iput-boolean v2, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->b:Z
|
|
|
|
.line 64
|
|
.line 65
|
|
goto :goto_1
|
|
|
|
.line 66
|
|
:cond_3
|
|
iput-boolean v1, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->b:Z
|
|
|
|
.line 67
|
|
.line 68
|
|
:goto_1
|
|
iget-boolean v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->b:Z
|
|
|
|
.line 69
|
|
.line 70
|
|
return v0
|
|
.end method
|
|
|
|
.method public final i()Z
|
|
.locals 5
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->f:[I
|
|
|
|
.line 2
|
|
.line 3
|
|
array-length v1, v0
|
|
|
|
.line 4
|
|
const/4 v2, 0x0
|
|
|
|
.line 5
|
|
const/4 v3, 0x1
|
|
|
|
.line 6
|
|
if-lez v1, :cond_0
|
|
|
|
.line 7
|
|
.line 8
|
|
move v4, v3
|
|
|
|
.line 9
|
|
goto :goto_0
|
|
|
|
.line 10
|
|
:cond_0
|
|
move v4, v2
|
|
|
|
.line 11
|
|
:goto_0
|
|
iput-boolean v4, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->g:Z
|
|
|
|
.line 12
|
|
.line 13
|
|
if-eqz v4, :cond_1
|
|
|
|
.line 14
|
|
.line 15
|
|
iput v3, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->a:I
|
|
|
|
.line 16
|
|
.line 17
|
|
aget v2, v0, v2
|
|
|
|
.line 18
|
|
.line 19
|
|
int-to-float v2, v2
|
|
|
|
.line 20
|
|
iput v2, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->d:F
|
|
|
|
.line 21
|
|
.line 22
|
|
sub-int/2addr v1, v3
|
|
|
|
.line 23
|
|
aget v0, v0, v1
|
|
|
|
.line 24
|
|
.line 25
|
|
int-to-float v0, v0
|
|
|
|
.line 26
|
|
iput v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->e:F
|
|
|
|
.line 27
|
|
.line 28
|
|
const/high16 v0, -0x40800000 # -1.0f
|
|
|
|
.line 29
|
|
.line 30
|
|
iput v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->c:F
|
|
|
|
.line 31
|
|
.line 32
|
|
:cond_1
|
|
return v4
|
|
.end method
|
|
|
|
.method public final j()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->i:Landroid/widget/TextView;
|
|
|
|
.line 2
|
|
.line 3
|
|
instance-of v0, v0, Landroidx/appcompat/widget/AppCompatEditText;
|
|
|
|
.line 4
|
|
.line 5
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
.line 6
|
|
.line 7
|
|
return v0
|
|
.end method
|
|
|
|
.method public final k(FFF)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
cmpg-float v1, p1, v0
|
|
|
|
.line 3
|
|
.line 4
|
|
const-string v2, "px) is less or equal to (0px)"
|
|
|
|
.line 5
|
|
.line 6
|
|
if-lez v1, :cond_2
|
|
|
|
.line 7
|
|
.line 8
|
|
cmpg-float v1, p2, p1
|
|
|
|
.line 9
|
|
.line 10
|
|
if-lez v1, :cond_1
|
|
|
|
.line 11
|
|
.line 12
|
|
cmpg-float v0, p3, v0
|
|
|
|
.line 13
|
|
.line 14
|
|
if-lez v0, :cond_0
|
|
|
|
.line 15
|
|
.line 16
|
|
const/4 v0, 0x1
|
|
|
|
.line 17
|
|
iput v0, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->a:I
|
|
|
|
.line 18
|
|
.line 19
|
|
iput p1, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->d:F
|
|
|
|
.line 20
|
|
.line 21
|
|
iput p2, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->e:F
|
|
|
|
.line 22
|
|
.line 23
|
|
iput p3, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->c:F
|
|
|
|
.line 24
|
|
.line 25
|
|
const/4 p1, 0x0
|
|
|
|
.line 26
|
|
iput-boolean p1, p0, Landroidx/appcompat/widget/AppCompatTextViewAutoSizeHelper;->g:Z
|
|
|
|
.line 27
|
|
.line 28
|
|
return-void
|
|
|
|
.line 29
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 30
|
|
.line 31
|
|
new-instance p2, Ljava/lang/StringBuilder;
|
|
|
|
.line 32
|
|
.line 33
|
|
const-string v0, "The auto-size step granularity ("
|
|
|
|
.line 34
|
|
.line 35
|
|
invoke-direct {p2, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
invoke-virtual {p2, p3}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
move-result-object p2
|
|
|
|
.line 48
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
throw p1
|
|
|
|
.line 52
|
|
:cond_1
|
|
new-instance p3, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 53
|
|
.line 54
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
.line 55
|
|
.line 56
|
|
const-string v1, "Maximum auto-size text size ("
|
|
|
|
.line 57
|
|
.line 58
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
const-string p2, "px) is less or equal to minimum auto-size text size ("
|
|
|
|
.line 65
|
|
.line 66
|
|
invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;
|
|
|
|
.line 70
|
|
.line 71
|
|
.line 72
|
|
const-string p1, "px)"
|
|
|
|
.line 73
|
|
.line 74
|
|
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 75
|
|
.line 76
|
|
.line 77
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
move-result-object p1
|
|
|
|
.line 81
|
|
invoke-direct {p3, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 82
|
|
.line 83
|
|
.line 84
|
|
throw p3
|
|
|
|
.line 85
|
|
:cond_2
|
|
new-instance p2, Ljava/lang/IllegalArgumentException;
|
|
|
|
.line 86
|
|
.line 87
|
|
new-instance p3, Ljava/lang/StringBuilder;
|
|
|
|
.line 88
|
|
.line 89
|
|
const-string v0, "Minimum auto-size text size ("
|
|
|
|
.line 90
|
|
.line 91
|
|
invoke-direct {p3, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 92
|
|
.line 93
|
|
.line 94
|
|
invoke-virtual {p3, p1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;
|
|
|
|
.line 95
|
|
.line 96
|
|
.line 97
|
|
invoke-virtual {p3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
.line 98
|
|
.line 99
|
|
.line 100
|
|
invoke-virtual {p3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
.line 101
|
|
.line 102
|
|
.line 103
|
|
move-result-object p1
|
|
|
|
.line 104
|
|
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 105
|
|
.line 106
|
|
.line 107
|
|
throw p2
|
|
.end method
|