* 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>
845 lines
16 KiB
Smali
845 lines
16 KiB
Smali
.class public final Landroidx/core/widget/TextViewCompat;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Landroidx/core/widget/TextViewCompat$Api26Impl;,
|
|
Landroidx/core/widget/TextViewCompat$OreoCallback;,
|
|
Landroidx/core/widget/TextViewCompat$Api28Impl;,
|
|
Landroidx/core/widget/TextViewCompat$Api34Impl;,
|
|
Landroidx/core/widget/TextViewCompat$Api23Impl;,
|
|
Landroidx/core/widget/TextViewCompat$Api24Impl;,
|
|
Landroidx/core/widget/TextViewCompat$AutoSizeTextType;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public static a(Landroidx/appcompat/widget/AppCompatTextView;)Landroidx/core/text/PrecomputedTextCompat$Params;
|
|
.locals 7
|
|
|
|
.line 1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 2
|
|
.line 3
|
|
const/16 v1, 0x1c
|
|
|
|
.line 4
|
|
.line 5
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
new-instance v0, Landroidx/core/text/PrecomputedTextCompat$Params;
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-static {p0}, Landroidx/core/widget/TextViewCompat$Api28Impl;->b(Landroidx/appcompat/widget/AppCompatTextView;)Landroid/text/PrecomputedText$Params;
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result-object p0
|
|
|
|
.line 13
|
|
invoke-direct {v0, p0}, Landroidx/core/text/PrecomputedTextCompat$Params;-><init>(Landroid/text/PrecomputedText$Params;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
return-object v0
|
|
|
|
.line 17
|
|
:cond_0
|
|
new-instance v2, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;
|
|
|
|
.line 18
|
|
.line 19
|
|
new-instance v3, Landroid/text/TextPaint;
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result-object v4
|
|
|
|
.line 25
|
|
invoke-direct {v3, v4}, Landroid/text/TextPaint;-><init>(Landroid/graphics/Paint;)V
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
invoke-direct {v2}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
const/4 v4, 0x1
|
|
|
|
.line 32
|
|
iput v4, v2, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->a:I
|
|
|
|
.line 33
|
|
.line 34
|
|
iput v4, v2, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->b:I
|
|
|
|
.line 35
|
|
.line 36
|
|
sget-object v5, Landroid/text/TextDirectionHeuristics;->FIRSTSTRONG_LTR:Landroid/text/TextDirectionHeuristic;
|
|
|
|
.line 37
|
|
.line 38
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getBreakStrategy()I
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
move-result v6
|
|
|
|
.line 42
|
|
iput v6, v2, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->a:I
|
|
|
|
.line 43
|
|
.line 44
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getHyphenationFrequency()I
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
move-result v6
|
|
|
|
.line 48
|
|
iput v6, v2, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->b:I
|
|
|
|
.line 49
|
|
.line 50
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getTransformationMethod()Landroid/text/method/TransformationMethod;
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
move-result-object v6
|
|
|
|
.line 54
|
|
instance-of v6, v6, Landroid/text/method/PasswordTransformationMethod;
|
|
|
|
.line 55
|
|
.line 56
|
|
if-eqz v6, :cond_1
|
|
|
|
.line 57
|
|
.line 58
|
|
sget-object v5, Landroid/text/TextDirectionHeuristics;->LTR:Landroid/text/TextDirectionHeuristic;
|
|
|
|
.line 59
|
|
.line 60
|
|
goto :goto_2
|
|
|
|
.line 61
|
|
:cond_1
|
|
const/4 v6, 0x0
|
|
|
|
.line 62
|
|
if-lt v0, v1, :cond_4
|
|
|
|
.line 63
|
|
.line 64
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getInputType()I
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
move-result v0
|
|
|
|
.line 68
|
|
and-int/lit8 v0, v0, 0xf
|
|
|
|
.line 69
|
|
.line 70
|
|
const/4 v1, 0x3
|
|
|
|
.line 71
|
|
if-ne v0, v1, :cond_4
|
|
|
|
.line 72
|
|
.line 73
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getTextLocale()Ljava/util/Locale;
|
|
|
|
.line 74
|
|
.line 75
|
|
.line 76
|
|
move-result-object p0
|
|
|
|
.line 77
|
|
invoke-static {p0}, Landroidx/core/widget/TextViewCompat$Api24Impl;->a(Ljava/util/Locale;)Landroid/icu/text/DecimalFormatSymbols;
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
move-result-object p0
|
|
|
|
.line 81
|
|
invoke-static {p0}, Landroidx/core/widget/TextViewCompat$Api28Impl;->a(Landroid/icu/text/DecimalFormatSymbols;)[Ljava/lang/String;
|
|
|
|
.line 82
|
|
.line 83
|
|
.line 84
|
|
move-result-object p0
|
|
|
|
.line 85
|
|
aget-object p0, p0, v6
|
|
|
|
.line 86
|
|
.line 87
|
|
invoke-virtual {p0, v6}, Ljava/lang/String;->codePointAt(I)I
|
|
|
|
.line 88
|
|
.line 89
|
|
.line 90
|
|
move-result p0
|
|
|
|
.line 91
|
|
invoke-static {p0}, Ljava/lang/Character;->getDirectionality(I)B
|
|
|
|
.line 92
|
|
.line 93
|
|
.line 94
|
|
move-result p0
|
|
|
|
.line 95
|
|
if-eq p0, v4, :cond_3
|
|
|
|
.line 96
|
|
.line 97
|
|
const/4 v0, 0x2
|
|
|
|
.line 98
|
|
if-ne p0, v0, :cond_2
|
|
|
|
.line 99
|
|
.line 100
|
|
goto :goto_0
|
|
|
|
.line 101
|
|
:cond_2
|
|
sget-object v5, Landroid/text/TextDirectionHeuristics;->LTR:Landroid/text/TextDirectionHeuristic;
|
|
|
|
.line 102
|
|
.line 103
|
|
goto :goto_2
|
|
|
|
.line 104
|
|
:cond_3
|
|
:goto_0
|
|
sget-object v5, Landroid/text/TextDirectionHeuristics;->RTL:Landroid/text/TextDirectionHeuristic;
|
|
|
|
.line 105
|
|
.line 106
|
|
goto :goto_2
|
|
|
|
.line 107
|
|
:cond_4
|
|
invoke-virtual {p0}, Landroid/view/View;->getLayoutDirection()I
|
|
|
|
.line 108
|
|
.line 109
|
|
.line 110
|
|
move-result v0
|
|
|
|
.line 111
|
|
if-ne v0, v4, :cond_5
|
|
|
|
.line 112
|
|
.line 113
|
|
goto :goto_1
|
|
|
|
.line 114
|
|
:cond_5
|
|
move v4, v6
|
|
|
|
.line 115
|
|
:goto_1
|
|
invoke-virtual {p0}, Landroid/view/View;->getTextDirection()I
|
|
|
|
.line 116
|
|
.line 117
|
|
.line 118
|
|
move-result p0
|
|
|
|
.line 119
|
|
packed-switch p0, :pswitch_data_0
|
|
|
|
.line 120
|
|
.line 121
|
|
.line 122
|
|
if-eqz v4, :cond_6
|
|
|
|
.line 123
|
|
.line 124
|
|
sget-object v5, Landroid/text/TextDirectionHeuristics;->FIRSTSTRONG_RTL:Landroid/text/TextDirectionHeuristic;
|
|
|
|
.line 125
|
|
.line 126
|
|
goto :goto_2
|
|
|
|
.line 127
|
|
:pswitch_0
|
|
sget-object v5, Landroid/text/TextDirectionHeuristics;->FIRSTSTRONG_RTL:Landroid/text/TextDirectionHeuristic;
|
|
|
|
.line 128
|
|
.line 129
|
|
goto :goto_2
|
|
|
|
.line 130
|
|
:pswitch_1
|
|
sget-object v5, Landroid/text/TextDirectionHeuristics;->LOCALE:Landroid/text/TextDirectionHeuristic;
|
|
|
|
.line 131
|
|
.line 132
|
|
goto :goto_2
|
|
|
|
.line 133
|
|
:pswitch_2
|
|
sget-object v5, Landroid/text/TextDirectionHeuristics;->RTL:Landroid/text/TextDirectionHeuristic;
|
|
|
|
.line 134
|
|
.line 135
|
|
goto :goto_2
|
|
|
|
.line 136
|
|
:pswitch_3
|
|
sget-object v5, Landroid/text/TextDirectionHeuristics;->LTR:Landroid/text/TextDirectionHeuristic;
|
|
|
|
.line 137
|
|
.line 138
|
|
goto :goto_2
|
|
|
|
.line 139
|
|
:pswitch_4
|
|
sget-object v5, Landroid/text/TextDirectionHeuristics;->ANYRTL_LTR:Landroid/text/TextDirectionHeuristic;
|
|
|
|
.line 140
|
|
.line 141
|
|
:cond_6
|
|
:goto_2
|
|
:pswitch_5
|
|
new-instance p0, Landroidx/core/text/PrecomputedTextCompat$Params;
|
|
|
|
.line 142
|
|
.line 143
|
|
iget v0, v2, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->a:I
|
|
|
|
.line 144
|
|
.line 145
|
|
iget v1, v2, Landroidx/core/text/PrecomputedTextCompat$Params$Builder;->b:I
|
|
|
|
.line 146
|
|
.line 147
|
|
invoke-direct {p0, v3, v5, v0, v1}, Landroidx/core/text/PrecomputedTextCompat$Params;-><init>(Landroid/text/TextPaint;Landroid/text/TextDirectionHeuristic;II)V
|
|
|
|
.line 148
|
|
.line 149
|
|
.line 150
|
|
return-object p0
|
|
|
|
.line 151
|
|
:pswitch_data_0
|
|
.packed-switch 0x2
|
|
:pswitch_4
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_5
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public static b(Landroid/widget/TextView;I)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-static {p1}, Landroidx/core/util/Preconditions;->b(I)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 5
|
|
.line 6
|
|
const/16 v1, 0x1c
|
|
|
|
.line 7
|
|
.line 8
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 9
|
|
.line 10
|
|
invoke-static {p0, p1}, Landroidx/core/widget/TextViewCompat$Api28Impl;->c(Landroid/widget/TextView;I)V
|
|
|
|
.line 11
|
|
.line 12
|
|
.line 13
|
|
return-void
|
|
|
|
.line 14
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result-object v0
|
|
|
|
.line 18
|
|
invoke-virtual {v0}, Landroid/graphics/Paint;->getFontMetricsInt()Landroid/graphics/Paint$FontMetricsInt;
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result-object v0
|
|
|
|
.line 22
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getIncludeFontPadding()Z
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
move-result v1
|
|
|
|
.line 26
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 27
|
|
.line 28
|
|
iget v0, v0, Landroid/graphics/Paint$FontMetricsInt;->top:I
|
|
|
|
.line 29
|
|
.line 30
|
|
goto :goto_0
|
|
|
|
.line 31
|
|
:cond_1
|
|
iget v0, v0, Landroid/graphics/Paint$FontMetricsInt;->ascent:I
|
|
|
|
.line 32
|
|
.line 33
|
|
:goto_0
|
|
invoke-static {v0}, Ljava/lang/Math;->abs(I)I
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
move-result v1
|
|
|
|
.line 37
|
|
if-le p1, v1, :cond_2
|
|
|
|
.line 38
|
|
.line 39
|
|
add-int/2addr p1, v0
|
|
|
|
.line 40
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingLeft()I
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result v0
|
|
|
|
.line 44
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingRight()I
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
move-result v1
|
|
|
|
.line 48
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingBottom()I
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
move-result v2
|
|
|
|
.line 52
|
|
invoke-virtual {p0, v0, p1, v1, v2}, Landroid/widget/TextView;->setPadding(IIII)V
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public static c(Landroid/widget/TextView;I)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-static {p1}, Landroidx/core/util/Preconditions;->b(I)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result-object v0
|
|
|
|
.line 8
|
|
invoke-virtual {v0}, Landroid/graphics/Paint;->getFontMetricsInt()Landroid/graphics/Paint$FontMetricsInt;
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result-object v0
|
|
|
|
.line 12
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getIncludeFontPadding()Z
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result v1
|
|
|
|
.line 16
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 17
|
|
.line 18
|
|
iget v0, v0, Landroid/graphics/Paint$FontMetricsInt;->bottom:I
|
|
|
|
.line 19
|
|
.line 20
|
|
goto :goto_0
|
|
|
|
.line 21
|
|
:cond_0
|
|
iget v0, v0, Landroid/graphics/Paint$FontMetricsInt;->descent:I
|
|
|
|
.line 22
|
|
.line 23
|
|
:goto_0
|
|
invoke-static {v0}, Ljava/lang/Math;->abs(I)I
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result v1
|
|
|
|
.line 27
|
|
if-le p1, v1, :cond_1
|
|
|
|
.line 28
|
|
.line 29
|
|
sub-int/2addr p1, v0
|
|
|
|
.line 30
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingLeft()I
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
move-result v0
|
|
|
|
.line 34
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingTop()I
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result v1
|
|
|
|
.line 38
|
|
invoke-virtual {p0}, Landroid/view/View;->getPaddingRight()I
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
move-result v2
|
|
|
|
.line 42
|
|
invoke-virtual {p0, v0, v1, v2, p1}, Landroid/widget/TextView;->setPadding(IIII)V
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public static d(Landroid/widget/TextView;I)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-static {p1}, Landroidx/core/util/Preconditions;->b(I)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result-object v0
|
|
|
|
.line 8
|
|
const/4 v1, 0x0
|
|
|
|
.line 9
|
|
invoke-virtual {v0, v1}, Landroid/graphics/Paint;->getFontMetricsInt(Landroid/graphics/Paint$FontMetricsInt;)I
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result v0
|
|
|
|
.line 13
|
|
if-eq p1, v0, :cond_0
|
|
|
|
.line 14
|
|
.line 15
|
|
sub-int/2addr p1, v0
|
|
|
|
.line 16
|
|
int-to-float p1, p1
|
|
|
|
.line 17
|
|
const/high16 v0, 0x3f800000 # 1.0f
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-virtual {p0, p1, v0}, Landroid/widget/TextView;->setLineSpacing(FF)V
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public static e(Landroid/widget/TextView;IF)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 2
|
|
.line 3
|
|
const/16 v1, 0x22
|
|
|
|
.line 4
|
|
.line 5
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-static {p0, p1, p2}, Landroidx/core/widget/TextViewCompat$Api34Impl;->a(Landroid/widget/TextView;IF)V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
return-void
|
|
|
|
.line 11
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result-object v0
|
|
|
|
.line 15
|
|
invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result-object v0
|
|
|
|
.line 19
|
|
invoke-static {p1, p2, v0}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result p1
|
|
|
|
.line 23
|
|
invoke-static {p1}, Ljava/lang/Math;->round(F)I
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result p1
|
|
|
|
.line 27
|
|
invoke-static {p0, p1}, Landroidx/core/widget/TextViewCompat;->d(Landroid/widget/TextView;I)V
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
return-void
|
|
.end method
|
|
|
|
.method public static f(Landroidx/appcompat/widget/AppCompatTextView;Landroidx/core/text/PrecomputedTextCompat;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 2
|
|
.line 3
|
|
const/16 v1, 0x1d
|
|
|
|
.line 4
|
|
.line 5
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p1}, Landroidx/core/text/PrecomputedTextCompat;->a()Landroid/text/PrecomputedText;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object p1
|
|
|
|
.line 11
|
|
invoke-virtual {p0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
return-void
|
|
|
|
.line 15
|
|
:cond_0
|
|
invoke-static {p0}, Landroidx/core/widget/TextViewCompat;->a(Landroidx/appcompat/widget/AppCompatTextView;)Landroidx/core/text/PrecomputedTextCompat$Params;
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result-object p0
|
|
|
|
.line 19
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
const/4 p1, 0x0
|
|
|
|
.line 23
|
|
invoke-virtual {p0, p1}, Landroidx/core/text/PrecomputedTextCompat$Params;->a(Landroidx/core/text/PrecomputedTextCompat$Params;)Z
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
throw p1
|
|
.end method
|
|
|
|
.method public static g(Landroid/view/ActionMode$Callback;)Landroid/view/ActionMode$Callback;
|
|
.locals 2
|
|
|
|
.line 1
|
|
instance-of v0, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 6
|
|
.line 7
|
|
const/16 v1, 0x1a
|
|
|
|
.line 8
|
|
.line 9
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
check-cast p0, Landroidx/core/widget/TextViewCompat$OreoCallback;
|
|
|
|
.line 12
|
|
.line 13
|
|
iget-object p0, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;->a:Landroid/view/ActionMode$Callback;
|
|
|
|
.line 14
|
|
.line 15
|
|
:cond_0
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static h(Landroid/view/ActionMode$Callback;Landroid/widget/TextView;)Landroid/view/ActionMode$Callback;
|
|
.locals 2
|
|
|
|
.line 1
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 2
|
|
.line 3
|
|
const/16 v1, 0x1a
|
|
|
|
.line 4
|
|
.line 5
|
|
if-lt v0, v1, :cond_1
|
|
|
|
.line 6
|
|
.line 7
|
|
const/16 v1, 0x1b
|
|
|
|
.line 8
|
|
.line 9
|
|
if-gt v0, v1, :cond_1
|
|
|
|
.line 10
|
|
.line 11
|
|
instance-of v0, p0, Landroidx/core/widget/TextViewCompat$OreoCallback;
|
|
|
|
.line 12
|
|
.line 13
|
|
if-nez v0, :cond_1
|
|
|
|
.line 14
|
|
.line 15
|
|
if-nez p0, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
goto :goto_0
|
|
|
|
.line 18
|
|
:cond_0
|
|
new-instance v0, Landroidx/core/widget/TextViewCompat$OreoCallback;
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-direct {v0, p0, p1}, Landroidx/core/widget/TextViewCompat$OreoCallback;-><init>(Landroid/view/ActionMode$Callback;Landroid/widget/TextView;)V
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
return-object v0
|
|
|
|
.line 24
|
|
:cond_1
|
|
:goto_0
|
|
return-object p0
|
|
.end method
|