* 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>
1125 lines
28 KiB
Smali
1125 lines
28 KiB
Smali
.class public Lcom/google/android/material/materialswitch/MaterialSwitch;
|
|
.super Landroidx/appcompat/widget/SwitchCompat;
|
|
.source "SourceFile"
|
|
|
|
|
|
# static fields
|
|
.field public static final N:[I
|
|
|
|
|
|
# instance fields
|
|
.field public A:Landroid/graphics/drawable/Drawable;
|
|
|
|
.field public B:Landroid/graphics/drawable/Drawable;
|
|
|
|
.field public C:I
|
|
|
|
.field public D:Landroid/graphics/drawable/Drawable;
|
|
|
|
.field public E:Landroid/graphics/drawable/Drawable;
|
|
|
|
.field public F:Landroid/content/res/ColorStateList;
|
|
|
|
.field public G:Landroid/content/res/ColorStateList;
|
|
|
|
.field public H:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.field public I:Landroid/content/res/ColorStateList;
|
|
|
|
.field public J:Landroid/content/res/ColorStateList;
|
|
|
|
.field public K:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.field public L:[I
|
|
|
|
.field public M:[I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
sget v0, Lcom/google/android/material/R$attr;->state_with_icon:I
|
|
|
|
.line 2
|
|
.line 3
|
|
filled-new-array {v0}, [I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object v0
|
|
|
|
.line 7
|
|
sput-object v0, Lcom/google/android/material/materialswitch/MaterialSwitch;->N:[I
|
|
|
|
.line 8
|
|
.line 9
|
|
return-void
|
|
.end method
|
|
|
|
.method public static f(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;[I[IF)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
if-eqz p0, :cond_1
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez p1, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
goto :goto_0
|
|
|
|
.line 6
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 7
|
|
invoke-virtual {p1, p2, v0}, Landroid/content/res/ColorStateList;->getColorForState([II)I
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result p2
|
|
|
|
.line 11
|
|
invoke-virtual {p1, p3, v0}, Landroid/content/res/ColorStateList;->getColorForState([II)I
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result p1
|
|
|
|
.line 15
|
|
invoke-static {p4, p2, p1}, Landroidx/core/graphics/ColorUtils;->e(FII)I
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
move-result p1
|
|
|
|
.line 19
|
|
invoke-virtual {p0, p1}, Landroid/graphics/drawable/Drawable;->setTint(I)V
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final d()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->A:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->F:Landroid/content/res/ColorStateList;
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/SwitchCompat;->getThumbTintMode()Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v2
|
|
|
|
.line 9
|
|
invoke-static {v0, v1, v2}, Lcom/google/android/material/drawable/DrawableUtils;->b(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;Landroid/graphics/PorterDuff$Mode;)Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result-object v0
|
|
|
|
.line 13
|
|
iput-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->A:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 14
|
|
.line 15
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->B:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 16
|
|
.line 17
|
|
iget-object v1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->G:Landroid/content/res/ColorStateList;
|
|
|
|
.line 18
|
|
.line 19
|
|
iget-object v2, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->H:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-static {v0, v1, v2}, Lcom/google/android/material/drawable/DrawableUtils;->b(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;Landroid/graphics/PorterDuff$Mode;)Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result-object v0
|
|
|
|
.line 25
|
|
iput-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->B:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-virtual {p0}, Lcom/google/android/material/materialswitch/MaterialSwitch;->g()V
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->A:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 31
|
|
.line 32
|
|
iget-object v1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->B:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 33
|
|
.line 34
|
|
iget v2, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->C:I
|
|
|
|
.line 35
|
|
.line 36
|
|
invoke-static {v0, v1, v2, v2}, Lcom/google/android/material/drawable/DrawableUtils;->a(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;II)Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
move-result-object v0
|
|
|
|
.line 40
|
|
invoke-super {p0, v0}, Landroidx/appcompat/widget/SwitchCompat;->setThumbDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
invoke-virtual {p0}, Landroid/view/View;->refreshDrawableState()V
|
|
|
|
.line 44
|
|
.line 45
|
|
.line 46
|
|
return-void
|
|
.end method
|
|
|
|
.method public final e()V
|
|
.locals 5
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->D:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget-object v1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->I:Landroid/content/res/ColorStateList;
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/SwitchCompat;->getTrackTintMode()Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v2
|
|
|
|
.line 9
|
|
invoke-static {v0, v1, v2}, Lcom/google/android/material/drawable/DrawableUtils;->b(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;Landroid/graphics/PorterDuff$Mode;)Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
move-result-object v0
|
|
|
|
.line 13
|
|
iput-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->D:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 14
|
|
.line 15
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->E:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 16
|
|
.line 17
|
|
iget-object v1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->J:Landroid/content/res/ColorStateList;
|
|
|
|
.line 18
|
|
.line 19
|
|
iget-object v2, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->K:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-static {v0, v1, v2}, Lcom/google/android/material/drawable/DrawableUtils;->b(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;Landroid/graphics/PorterDuff$Mode;)Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
move-result-object v0
|
|
|
|
.line 25
|
|
iput-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->E:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-virtual {p0}, Lcom/google/android/material/materialswitch/MaterialSwitch;->g()V
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->D:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 31
|
|
.line 32
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 33
|
|
.line 34
|
|
iget-object v1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->E:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 35
|
|
.line 36
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 37
|
|
.line 38
|
|
new-instance v0, Landroid/graphics/drawable/LayerDrawable;
|
|
|
|
.line 39
|
|
.line 40
|
|
iget-object v1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->D:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 41
|
|
.line 42
|
|
iget-object v2, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->E:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 43
|
|
.line 44
|
|
const/4 v3, 0x2
|
|
|
|
.line 45
|
|
new-array v3, v3, [Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 46
|
|
.line 47
|
|
const/4 v4, 0x0
|
|
|
|
.line 48
|
|
aput-object v1, v3, v4
|
|
|
|
.line 49
|
|
.line 50
|
|
const/4 v1, 0x1
|
|
|
|
.line 51
|
|
aput-object v2, v3, v1
|
|
|
|
.line 52
|
|
.line 53
|
|
invoke-direct {v0, v3}, Landroid/graphics/drawable/LayerDrawable;-><init>([Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 54
|
|
.line 55
|
|
.line 56
|
|
goto :goto_0
|
|
|
|
.line 57
|
|
:cond_0
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 58
|
|
.line 59
|
|
goto :goto_0
|
|
|
|
.line 60
|
|
:cond_1
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->E:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 61
|
|
.line 62
|
|
:goto_0
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 63
|
|
.line 64
|
|
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicWidth()I
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
move-result v1
|
|
|
|
.line 68
|
|
invoke-virtual {p0, v1}, Landroidx/appcompat/widget/SwitchCompat;->setSwitchMinWidth(I)V
|
|
|
|
.line 69
|
|
.line 70
|
|
.line 71
|
|
:cond_2
|
|
invoke-super {p0, v0}, Landroidx/appcompat/widget/SwitchCompat;->setTrackDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
return-void
|
|
.end method
|
|
|
|
.method public final g()V
|
|
.locals 5
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->F:Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->G:Landroid/content/res/ColorStateList;
|
|
|
|
.line 6
|
|
.line 7
|
|
if-nez v0, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->I:Landroid/content/res/ColorStateList;
|
|
|
|
.line 10
|
|
.line 11
|
|
if-nez v0, :cond_0
|
|
|
|
.line 12
|
|
.line 13
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->J:Landroid/content/res/ColorStateList;
|
|
|
|
.line 14
|
|
.line 15
|
|
if-nez v0, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
goto :goto_0
|
|
|
|
.line 18
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/SwitchCompat;->getThumbPosition()F
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result v0
|
|
|
|
.line 22
|
|
iget-object v1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->F:Landroid/content/res/ColorStateList;
|
|
|
|
.line 23
|
|
.line 24
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 25
|
|
.line 26
|
|
iget-object v2, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->A:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 27
|
|
.line 28
|
|
iget-object v3, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->L:[I
|
|
|
|
.line 29
|
|
.line 30
|
|
iget-object v4, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->M:[I
|
|
|
|
.line 31
|
|
.line 32
|
|
invoke-static {v2, v1, v3, v4, v0}, Lcom/google/android/material/materialswitch/MaterialSwitch;->f(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;[I[IF)V
|
|
|
|
.line 33
|
|
.line 34
|
|
.line 35
|
|
:cond_1
|
|
iget-object v1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->G:Landroid/content/res/ColorStateList;
|
|
|
|
.line 36
|
|
.line 37
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 38
|
|
.line 39
|
|
iget-object v2, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->B:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 40
|
|
.line 41
|
|
iget-object v3, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->L:[I
|
|
|
|
.line 42
|
|
.line 43
|
|
iget-object v4, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->M:[I
|
|
|
|
.line 44
|
|
.line 45
|
|
invoke-static {v2, v1, v3, v4, v0}, Lcom/google/android/material/materialswitch/MaterialSwitch;->f(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;[I[IF)V
|
|
|
|
.line 46
|
|
.line 47
|
|
.line 48
|
|
:cond_2
|
|
iget-object v1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->I:Landroid/content/res/ColorStateList;
|
|
|
|
.line 49
|
|
.line 50
|
|
if-eqz v1, :cond_3
|
|
|
|
.line 51
|
|
.line 52
|
|
iget-object v2, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->D:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 53
|
|
.line 54
|
|
iget-object v3, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->L:[I
|
|
|
|
.line 55
|
|
.line 56
|
|
iget-object v4, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->M:[I
|
|
|
|
.line 57
|
|
.line 58
|
|
invoke-static {v2, v1, v3, v4, v0}, Lcom/google/android/material/materialswitch/MaterialSwitch;->f(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;[I[IF)V
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
:cond_3
|
|
iget-object v1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->J:Landroid/content/res/ColorStateList;
|
|
|
|
.line 62
|
|
.line 63
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 64
|
|
.line 65
|
|
iget-object v2, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->E:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 66
|
|
.line 67
|
|
iget-object v3, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->L:[I
|
|
|
|
.line 68
|
|
.line 69
|
|
iget-object v4, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->M:[I
|
|
|
|
.line 70
|
|
.line 71
|
|
invoke-static {v2, v1, v3, v4, v0}, Lcom/google/android/material/materialswitch/MaterialSwitch;->f(Landroid/graphics/drawable/Drawable;Landroid/content/res/ColorStateList;[I[IF)V
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
:cond_4
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public getThumbDrawable()Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->A:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getThumbIconDrawable()Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->B:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getThumbIconSize()I
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->C:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public getThumbIconTintList()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->G:Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getThumbIconTintMode()Landroid/graphics/PorterDuff$Mode;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->H:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getThumbTintList()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->F:Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getTrackDecorationDrawable()Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->E:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getTrackDecorationTintList()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->J:Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getTrackDecorationTintMode()Landroid/graphics/PorterDuff$Mode;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->K:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getTrackDrawable()Landroid/graphics/drawable/Drawable;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->D:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getTrackTintList()Landroid/content/res/ColorStateList;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->I:Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final invalidate()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Lcom/google/android/material/materialswitch/MaterialSwitch;->g()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-super {p0}, Landroid/widget/CompoundButton;->invalidate()V
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onCreateDrawableState(I)[I
|
|
.locals 6
|
|
|
|
.line 1
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-super {p0, p1}, Landroidx/appcompat/widget/SwitchCompat;->onCreateDrawableState(I)[I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result-object p1
|
|
|
|
.line 7
|
|
iget-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->B:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 8
|
|
.line 9
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
sget-object v0, Lcom/google/android/material/materialswitch/MaterialSwitch;->N:[I
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-static {p1, v0}, Landroid/view/View;->mergeDrawableStates([I[I)[I
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
:cond_0
|
|
array-length v0, p1
|
|
|
|
.line 17
|
|
new-array v0, v0, [I
|
|
|
|
.line 18
|
|
.line 19
|
|
array-length v1, p1
|
|
|
|
.line 20
|
|
const/4 v2, 0x0
|
|
|
|
.line 21
|
|
move v3, v2
|
|
|
|
.line 22
|
|
:goto_0
|
|
if-ge v2, v1, :cond_2
|
|
|
|
.line 23
|
|
.line 24
|
|
aget v4, p1, v2
|
|
|
|
.line 25
|
|
.line 26
|
|
const v5, 0x10100a0
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
if-eq v4, v5, :cond_1
|
|
|
|
.line 30
|
|
.line 31
|
|
add-int/lit8 v5, v3, 0x1
|
|
|
|
.line 32
|
|
.line 33
|
|
aput v4, v0, v3
|
|
|
|
.line 34
|
|
.line 35
|
|
move v3, v5
|
|
|
|
.line 36
|
|
:cond_1
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
.line 37
|
|
.line 38
|
|
goto :goto_0
|
|
|
|
.line 39
|
|
:cond_2
|
|
iput-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->L:[I
|
|
|
|
.line 40
|
|
.line 41
|
|
invoke-static {p1}, Lcom/google/android/material/drawable/DrawableUtils;->c([I)[I
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result-object v0
|
|
|
|
.line 45
|
|
iput-object v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->M:[I
|
|
|
|
.line 46
|
|
.line 47
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public setThumbDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 0
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->A:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/material/materialswitch/MaterialSwitch;->d()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public setThumbIconDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 0
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->B:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/material/materialswitch/MaterialSwitch;->d()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public setThumbIconResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-static {v0, p1}, Landroidx/appcompat/content/res/AppCompatResources;->a(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object p1
|
|
|
|
.line 9
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/materialswitch/MaterialSwitch;->setThumbIconDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
return-void
|
|
.end method
|
|
|
|
.method public setThumbIconSize(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/Px;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iget v0, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->C:I
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iput p1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->C:I
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {p0}, Lcom/google/android/material/materialswitch/MaterialSwitch;->d()V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public setThumbIconTintList(Landroid/content/res/ColorStateList;)V
|
|
.locals 0
|
|
.param p1 # Landroid/content/res/ColorStateList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->G:Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/material/materialswitch/MaterialSwitch;->d()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public setThumbIconTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
.locals 0
|
|
.param p1 # Landroid/graphics/PorterDuff$Mode;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->H:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/material/materialswitch/MaterialSwitch;->d()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public setThumbTintList(Landroid/content/res/ColorStateList;)V
|
|
.locals 0
|
|
.param p1 # Landroid/content/res/ColorStateList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->F:Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/material/materialswitch/MaterialSwitch;->d()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public setThumbTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
.locals 0
|
|
.param p1 # Landroid/graphics/PorterDuff$Mode;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroidx/appcompat/widget/SwitchCompat;->setThumbTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p0}, Lcom/google/android/material/materialswitch/MaterialSwitch;->d()V
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTrackDecorationDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 0
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->E:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/material/materialswitch/MaterialSwitch;->e()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTrackDecorationResource(I)V
|
|
.locals 1
|
|
.param p1 # I
|
|
.annotation build Landroidx/annotation/DrawableRes;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-static {v0, p1}, Landroidx/appcompat/content/res/AppCompatResources;->a(Landroid/content/Context;I)Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object p1
|
|
|
|
.line 9
|
|
invoke-virtual {p0, p1}, Lcom/google/android/material/materialswitch/MaterialSwitch;->setTrackDecorationDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTrackDecorationTintList(Landroid/content/res/ColorStateList;)V
|
|
.locals 0
|
|
.param p1 # Landroid/content/res/ColorStateList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->J:Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/material/materialswitch/MaterialSwitch;->e()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTrackDecorationTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
.locals 0
|
|
.param p1 # Landroid/graphics/PorterDuff$Mode;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->K:Landroid/graphics/PorterDuff$Mode;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/material/materialswitch/MaterialSwitch;->e()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTrackDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
.locals 0
|
|
.param p1 # Landroid/graphics/drawable/Drawable;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->D:Landroid/graphics/drawable/Drawable;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/material/materialswitch/MaterialSwitch;->e()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTrackTintList(Landroid/content/res/ColorStateList;)V
|
|
.locals 0
|
|
.param p1 # Landroid/content/res/ColorStateList;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lcom/google/android/material/materialswitch/MaterialSwitch;->I:Landroid/content/res/ColorStateList;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {p0}, Lcom/google/android/material/materialswitch/MaterialSwitch;->e()V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|
|
|
|
.method public setTrackTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
.locals 0
|
|
.param p1 # Landroid/graphics/PorterDuff$Mode;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroidx/appcompat/widget/SwitchCompat;->setTrackTintMode(Landroid/graphics/PorterDuff$Mode;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p0}, Lcom/google/android/material/materialswitch/MaterialSwitch;->e()V
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
return-void
|
|
.end method
|