* 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>
1276 lines
26 KiB
Smali
1276 lines
26 KiB
Smali
.class Lcom/google/android/material/timepicker/TimePickerClockPresenter;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
# interfaces
|
|
.implements Lcom/google/android/material/timepicker/ClockHandView$OnRotateListener;
|
|
.implements Lcom/google/android/material/timepicker/TimePickerView$OnSelectionChange;
|
|
.implements Lcom/google/android/material/timepicker/TimePickerView$OnPeriodChangeListener;
|
|
.implements Lcom/google/android/material/timepicker/ClockHandView$OnActionUpListener;
|
|
.implements Lcom/google/android/material/timepicker/TimePickerPresenter;
|
|
|
|
|
|
# static fields
|
|
.field public static final j:[Ljava/lang/String;
|
|
|
|
.field public static final k:[Ljava/lang/String;
|
|
|
|
.field public static final l:[Ljava/lang/String;
|
|
|
|
|
|
# instance fields
|
|
.field public final c:Lcom/google/android/material/timepicker/TimePickerView;
|
|
|
|
.field public final f:Lcom/google/android/material/timepicker/TimeModel;
|
|
|
|
.field public g:F
|
|
|
|
.field public h:F
|
|
|
|
.field public i:Z
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 25
|
|
|
|
.line 1
|
|
const-string v10, "10"
|
|
|
|
.line 2
|
|
.line 3
|
|
const-string v11, "11"
|
|
|
|
.line 4
|
|
.line 5
|
|
const-string v0, "12"
|
|
|
|
.line 6
|
|
.line 7
|
|
const-string v1, "1"
|
|
|
|
.line 8
|
|
.line 9
|
|
const-string v2, "2"
|
|
|
|
.line 10
|
|
.line 11
|
|
const-string v3, "3"
|
|
|
|
.line 12
|
|
.line 13
|
|
const-string v4, "4"
|
|
|
|
.line 14
|
|
.line 15
|
|
const-string v5, "5"
|
|
|
|
.line 16
|
|
.line 17
|
|
const-string v6, "6"
|
|
|
|
.line 18
|
|
.line 19
|
|
const-string v7, "7"
|
|
|
|
.line 20
|
|
.line 21
|
|
const-string v8, "8"
|
|
|
|
.line 22
|
|
.line 23
|
|
const-string v9, "9"
|
|
|
|
.line 24
|
|
.line 25
|
|
filled-new-array/range {v0 .. v11}, [Ljava/lang/String;
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
move-result-object v0
|
|
|
|
.line 29
|
|
sput-object v0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->j:[Ljava/lang/String;
|
|
|
|
.line 30
|
|
.line 31
|
|
const-string v23, "22"
|
|
|
|
.line 32
|
|
.line 33
|
|
const-string v24, "23"
|
|
|
|
.line 34
|
|
.line 35
|
|
const-string v1, "00"
|
|
|
|
.line 36
|
|
.line 37
|
|
const-string v2, "1"
|
|
|
|
.line 38
|
|
.line 39
|
|
const-string v3, "2"
|
|
|
|
.line 40
|
|
.line 41
|
|
const-string v4, "3"
|
|
|
|
.line 42
|
|
.line 43
|
|
const-string v5, "4"
|
|
|
|
.line 44
|
|
.line 45
|
|
const-string v6, "5"
|
|
|
|
.line 46
|
|
.line 47
|
|
const-string v7, "6"
|
|
|
|
.line 48
|
|
.line 49
|
|
const-string v8, "7"
|
|
|
|
.line 50
|
|
.line 51
|
|
const-string v9, "8"
|
|
|
|
.line 52
|
|
.line 53
|
|
const-string v10, "9"
|
|
|
|
.line 54
|
|
.line 55
|
|
const-string v11, "10"
|
|
|
|
.line 56
|
|
.line 57
|
|
const-string v12, "11"
|
|
|
|
.line 58
|
|
.line 59
|
|
const-string v13, "12"
|
|
|
|
.line 60
|
|
.line 61
|
|
const-string v14, "13"
|
|
|
|
.line 62
|
|
.line 63
|
|
const-string v15, "14"
|
|
|
|
.line 64
|
|
.line 65
|
|
const-string v16, "15"
|
|
|
|
.line 66
|
|
.line 67
|
|
const-string v17, "16"
|
|
|
|
.line 68
|
|
.line 69
|
|
const-string v18, "17"
|
|
|
|
.line 70
|
|
.line 71
|
|
const-string v19, "18"
|
|
|
|
.line 72
|
|
.line 73
|
|
const-string v20, "19"
|
|
|
|
.line 74
|
|
.line 75
|
|
const-string v21, "20"
|
|
|
|
.line 76
|
|
.line 77
|
|
const-string v22, "21"
|
|
|
|
.line 78
|
|
.line 79
|
|
filled-new-array/range {v1 .. v24}, [Ljava/lang/String;
|
|
|
|
.line 80
|
|
.line 81
|
|
.line 82
|
|
move-result-object v0
|
|
|
|
.line 83
|
|
sput-object v0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->k:[Ljava/lang/String;
|
|
|
|
.line 84
|
|
.line 85
|
|
const-string v11, "50"
|
|
|
|
.line 86
|
|
.line 87
|
|
const-string v12, "55"
|
|
|
|
.line 88
|
|
.line 89
|
|
const-string v1, "00"
|
|
|
|
.line 90
|
|
.line 91
|
|
const-string v2, "5"
|
|
|
|
.line 92
|
|
.line 93
|
|
const-string v3, "10"
|
|
|
|
.line 94
|
|
.line 95
|
|
const-string v4, "15"
|
|
|
|
.line 96
|
|
.line 97
|
|
const-string v5, "20"
|
|
|
|
.line 98
|
|
.line 99
|
|
const-string v6, "25"
|
|
|
|
.line 100
|
|
.line 101
|
|
const-string v7, "30"
|
|
|
|
.line 102
|
|
.line 103
|
|
const-string v8, "35"
|
|
|
|
.line 104
|
|
.line 105
|
|
const-string v9, "40"
|
|
|
|
.line 106
|
|
.line 107
|
|
const-string v10, "45"
|
|
|
|
.line 108
|
|
.line 109
|
|
filled-new-array/range {v1 .. v12}, [Ljava/lang/String;
|
|
|
|
.line 110
|
|
.line 111
|
|
.line 112
|
|
move-result-object v0
|
|
|
|
.line 113
|
|
sput-object v0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->l:[Ljava/lang/String;
|
|
|
|
.line 114
|
|
.line 115
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lcom/google/android/material/timepicker/TimePickerView;Lcom/google/android/material/timepicker/TimeModel;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
const/4 v0, 0x0
|
|
|
|
.line 5
|
|
iput-boolean v0, p0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->i:Z
|
|
|
|
.line 6
|
|
.line 7
|
|
iput-object p1, p0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->c:Lcom/google/android/material/timepicker/TimePickerView;
|
|
|
|
.line 8
|
|
.line 9
|
|
iput-object p2, p0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->f:Lcom/google/android/material/timepicker/TimeModel;
|
|
|
|
.line 10
|
|
.line 11
|
|
iget p2, p2, Lcom/google/android/material/timepicker/TimeModel;->g:I
|
|
|
|
.line 12
|
|
.line 13
|
|
if-nez p2, :cond_0
|
|
|
|
.line 14
|
|
.line 15
|
|
iget-object p2, p1, Lcom/google/android/material/timepicker/TimePickerView;->A:Lcom/google/android/material/button/MaterialButtonToggleGroup;
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-virtual {p2, v0}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
:cond_0
|
|
iget-object p2, p1, Lcom/google/android/material/timepicker/TimePickerView;->y:Lcom/google/android/material/timepicker/ClockHandView;
|
|
|
|
.line 21
|
|
.line 22
|
|
iget-object p2, p2, Lcom/google/android/material/timepicker/ClockHandView;->n:Ljava/util/ArrayList;
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-virtual {p2, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
iput-object p0, p1, Lcom/google/android/material/timepicker/TimePickerView;->D:Lcom/google/android/material/timepicker/TimePickerClockPresenter;
|
|
|
|
.line 28
|
|
.line 29
|
|
iput-object p0, p1, Lcom/google/android/material/timepicker/TimePickerView;->C:Lcom/google/android/material/timepicker/TimePickerClockPresenter;
|
|
|
|
.line 30
|
|
.line 31
|
|
iget-object p1, p1, Lcom/google/android/material/timepicker/TimePickerView;->y:Lcom/google/android/material/timepicker/ClockHandView;
|
|
|
|
.line 32
|
|
.line 33
|
|
iput-object p0, p1, Lcom/google/android/material/timepicker/ClockHandView;->v:Lcom/google/android/material/timepicker/ClockHandView$OnActionUpListener;
|
|
|
|
.line 34
|
|
.line 35
|
|
const-string p1, "%d"
|
|
|
|
.line 36
|
|
.line 37
|
|
sget-object p2, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->j:[Ljava/lang/String;
|
|
|
|
.line 38
|
|
.line 39
|
|
invoke-virtual {p0, p1, p2}, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->f(Ljava/lang/String;[Ljava/lang/String;)V
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
sget-object p2, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->k:[Ljava/lang/String;
|
|
|
|
.line 43
|
|
.line 44
|
|
invoke-virtual {p0, p1, p2}, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->f(Ljava/lang/String;[Ljava/lang/String;)V
|
|
|
|
.line 45
|
|
.line 46
|
|
.line 47
|
|
sget-object p1, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->l:[Ljava/lang/String;
|
|
|
|
.line 48
|
|
.line 49
|
|
const-string p2, "%02d"
|
|
|
|
.line 50
|
|
.line 51
|
|
invoke-virtual {p0, p2, p1}, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->f(Ljava/lang/String;[Ljava/lang/String;)V
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
invoke-virtual {p0}, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->invalidate()V
|
|
|
|
.line 55
|
|
.line 56
|
|
.line 57
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(FZ)V
|
|
.locals 6
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->i:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_4
|
|
|
|
.line 4
|
|
.line 5
|
|
if-eqz p2, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
goto :goto_1
|
|
|
|
.line 8
|
|
:cond_0
|
|
iget-object p2, p0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->f:Lcom/google/android/material/timepicker/TimeModel;
|
|
|
|
.line 9
|
|
.line 10
|
|
iget v0, p2, Lcom/google/android/material/timepicker/TimeModel;->h:I
|
|
|
|
.line 11
|
|
.line 12
|
|
iget v1, p2, Lcom/google/android/material/timepicker/TimeModel;->i:I
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-static {p1}, Ljava/lang/Math;->round(F)I
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result p1
|
|
|
|
.line 18
|
|
iget v2, p2, Lcom/google/android/material/timepicker/TimeModel;->j:I
|
|
|
|
.line 19
|
|
.line 20
|
|
iget-object v3, p0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->c:Lcom/google/android/material/timepicker/TimePickerView;
|
|
|
|
.line 21
|
|
.line 22
|
|
const/16 v4, 0xc
|
|
|
|
.line 23
|
|
.line 24
|
|
if-ne v2, v4, :cond_1
|
|
|
|
.line 25
|
|
.line 26
|
|
add-int/lit8 p1, p1, 0x3
|
|
|
|
.line 27
|
|
.line 28
|
|
div-int/lit8 p1, p1, 0x6
|
|
|
|
.line 29
|
|
.line 30
|
|
rem-int/lit8 p1, p1, 0x3c
|
|
|
|
.line 31
|
|
.line 32
|
|
iput p1, p2, Lcom/google/android/material/timepicker/TimeModel;->i:I
|
|
|
|
.line 33
|
|
.line 34
|
|
mul-int/lit8 p1, p1, 0x6
|
|
|
|
.line 35
|
|
.line 36
|
|
int-to-double v4, p1
|
|
|
|
.line 37
|
|
invoke-static {v4, v5}, Ljava/lang/Math;->floor(D)D
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
move-result-wide v4
|
|
|
|
.line 41
|
|
double-to-float p1, v4
|
|
|
|
.line 42
|
|
iput p1, p0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->g:F
|
|
|
|
.line 43
|
|
.line 44
|
|
goto :goto_0
|
|
|
|
.line 45
|
|
:cond_1
|
|
add-int/lit8 p1, p1, 0xf
|
|
|
|
.line 46
|
|
.line 47
|
|
div-int/lit8 p1, p1, 0x1e
|
|
|
|
.line 48
|
|
.line 49
|
|
iget v2, p2, Lcom/google/android/material/timepicker/TimeModel;->g:I
|
|
|
|
.line 50
|
|
.line 51
|
|
const/4 v4, 0x1
|
|
|
|
.line 52
|
|
if-ne v2, v4, :cond_2
|
|
|
|
.line 53
|
|
.line 54
|
|
rem-int/lit8 p1, p1, 0xc
|
|
|
|
.line 55
|
|
.line 56
|
|
iget-object v2, v3, Lcom/google/android/material/timepicker/TimePickerView;->z:Lcom/google/android/material/timepicker/ClockFaceView;
|
|
|
|
.line 57
|
|
.line 58
|
|
iget-object v2, v2, Lcom/google/android/material/timepicker/ClockFaceView;->z:Lcom/google/android/material/timepicker/ClockHandView;
|
|
|
|
.line 59
|
|
.line 60
|
|
iget v2, v2, Lcom/google/android/material/timepicker/ClockHandView;->y:I
|
|
|
|
.line 61
|
|
.line 62
|
|
const/4 v4, 0x2
|
|
|
|
.line 63
|
|
if-ne v2, v4, :cond_2
|
|
|
|
.line 64
|
|
.line 65
|
|
add-int/lit8 p1, p1, 0xc
|
|
|
|
.line 66
|
|
.line 67
|
|
:cond_2
|
|
invoke-virtual {p2, p1}, Lcom/google/android/material/timepicker/TimeModel;->c(I)V
|
|
|
|
.line 68
|
|
.line 69
|
|
.line 70
|
|
invoke-virtual {p2}, Lcom/google/android/material/timepicker/TimeModel;->b()I
|
|
|
|
.line 71
|
|
.line 72
|
|
.line 73
|
|
move-result p1
|
|
|
|
.line 74
|
|
mul-int/lit8 p1, p1, 0x1e
|
|
|
|
.line 75
|
|
.line 76
|
|
rem-int/lit16 p1, p1, 0x168
|
|
|
|
.line 77
|
|
.line 78
|
|
int-to-float p1, p1
|
|
|
|
.line 79
|
|
iput p1, p0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->h:F
|
|
|
|
.line 80
|
|
.line 81
|
|
:goto_0
|
|
invoke-virtual {p0}, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->e()V
|
|
|
|
.line 82
|
|
.line 83
|
|
.line 84
|
|
iget p1, p2, Lcom/google/android/material/timepicker/TimeModel;->i:I
|
|
|
|
.line 85
|
|
.line 86
|
|
if-ne p1, v1, :cond_3
|
|
|
|
.line 87
|
|
.line 88
|
|
iget p1, p2, Lcom/google/android/material/timepicker/TimeModel;->h:I
|
|
|
|
.line 89
|
|
.line 90
|
|
if-eq p1, v0, :cond_4
|
|
|
|
.line 91
|
|
.line 92
|
|
:cond_3
|
|
const/4 p1, 0x4
|
|
|
|
.line 93
|
|
invoke-virtual {v3, p1}, Landroid/view/View;->performHapticFeedback(I)Z
|
|
|
|
.line 94
|
|
.line 95
|
|
.line 96
|
|
:cond_4
|
|
:goto_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final b()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->c:Lcom/google/android/material/timepicker/TimePickerView;
|
|
|
|
.line 2
|
|
.line 3
|
|
const/4 v1, 0x0
|
|
|
|
.line 4
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
return-void
|
|
.end method
|
|
|
|
.method public final c()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->c:Lcom/google/android/material/timepicker/TimePickerView;
|
|
|
|
.line 2
|
|
.line 3
|
|
const/16 v1, 0x8
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
return-void
|
|
.end method
|
|
|
|
.method public final d(IZ)V
|
|
.locals 13
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
const/4 v1, 0x1
|
|
|
|
.line 3
|
|
const/16 v2, 0xc
|
|
|
|
.line 4
|
|
.line 5
|
|
if-ne p1, v2, :cond_0
|
|
|
|
.line 6
|
|
.line 7
|
|
move v3, v1
|
|
|
|
.line 8
|
|
goto :goto_0
|
|
|
|
.line 9
|
|
:cond_0
|
|
move v3, v0
|
|
|
|
.line 10
|
|
:goto_0
|
|
iget-object v4, p0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->c:Lcom/google/android/material/timepicker/TimePickerView;
|
|
|
|
.line 11
|
|
.line 12
|
|
iget-object v5, v4, Lcom/google/android/material/timepicker/TimePickerView;->y:Lcom/google/android/material/timepicker/ClockHandView;
|
|
|
|
.line 13
|
|
.line 14
|
|
iget-object v6, v4, Lcom/google/android/material/timepicker/TimePickerView;->x:Lcom/google/android/material/chip/Chip;
|
|
|
|
.line 15
|
|
.line 16
|
|
iget-object v7, v4, Lcom/google/android/material/timepicker/TimePickerView;->w:Lcom/google/android/material/chip/Chip;
|
|
|
|
.line 17
|
|
.line 18
|
|
iget-object v8, v4, Lcom/google/android/material/timepicker/TimePickerView;->z:Lcom/google/android/material/timepicker/ClockFaceView;
|
|
|
|
.line 19
|
|
.line 20
|
|
iput-boolean v3, v5, Lcom/google/android/material/timepicker/ClockHandView;->h:Z
|
|
|
|
.line 21
|
|
.line 22
|
|
iget-object v5, p0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->f:Lcom/google/android/material/timepicker/TimeModel;
|
|
|
|
.line 23
|
|
.line 24
|
|
iput p1, v5, Lcom/google/android/material/timepicker/TimeModel;->j:I
|
|
|
|
.line 25
|
|
.line 26
|
|
iget v9, v5, Lcom/google/android/material/timepicker/TimeModel;->g:I
|
|
|
|
.line 27
|
|
.line 28
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 29
|
|
.line 30
|
|
sget-object v10, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->l:[Ljava/lang/String;
|
|
|
|
.line 31
|
|
.line 32
|
|
goto :goto_1
|
|
|
|
.line 33
|
|
:cond_1
|
|
if-ne v9, v1, :cond_2
|
|
|
|
.line 34
|
|
.line 35
|
|
sget-object v10, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->k:[Ljava/lang/String;
|
|
|
|
.line 36
|
|
.line 37
|
|
goto :goto_1
|
|
|
|
.line 38
|
|
:cond_2
|
|
sget-object v10, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->j:[Ljava/lang/String;
|
|
|
|
.line 39
|
|
.line 40
|
|
:goto_1
|
|
if-eqz v3, :cond_3
|
|
|
|
.line 41
|
|
.line 42
|
|
sget v11, Lcom/google/android/material/R$string;->material_minute_suffix:I
|
|
|
|
.line 43
|
|
.line 44
|
|
goto :goto_2
|
|
|
|
.line 45
|
|
:cond_3
|
|
if-ne v9, v1, :cond_4
|
|
|
|
.line 46
|
|
.line 47
|
|
sget v11, Lcom/google/android/material/R$string;->material_hour_24h_suffix:I
|
|
|
|
.line 48
|
|
.line 49
|
|
goto :goto_2
|
|
|
|
.line 50
|
|
:cond_4
|
|
sget v11, Lcom/google/android/material/R$string;->material_hour_suffix:I
|
|
|
|
.line 51
|
|
.line 52
|
|
:goto_2
|
|
invoke-virtual {v8, v10, v11}, Lcom/google/android/material/timepicker/ClockFaceView;->q([Ljava/lang/String;I)V
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
iget v10, v5, Lcom/google/android/material/timepicker/TimeModel;->j:I
|
|
|
|
.line 56
|
|
.line 57
|
|
const/4 v11, 0x2
|
|
|
|
.line 58
|
|
const/16 v12, 0xa
|
|
|
|
.line 59
|
|
.line 60
|
|
if-ne v10, v12, :cond_5
|
|
|
|
.line 61
|
|
.line 62
|
|
if-ne v9, v1, :cond_5
|
|
|
|
.line 63
|
|
.line 64
|
|
iget v5, v5, Lcom/google/android/material/timepicker/TimeModel;->h:I
|
|
|
|
.line 65
|
|
.line 66
|
|
if-lt v5, v2, :cond_5
|
|
|
|
.line 67
|
|
.line 68
|
|
move v5, v11
|
|
|
|
.line 69
|
|
goto :goto_3
|
|
|
|
.line 70
|
|
:cond_5
|
|
move v5, v1
|
|
|
|
.line 71
|
|
:goto_3
|
|
iget-object v8, v8, Lcom/google/android/material/timepicker/ClockFaceView;->z:Lcom/google/android/material/timepicker/ClockHandView;
|
|
|
|
.line 72
|
|
.line 73
|
|
iput v5, v8, Lcom/google/android/material/timepicker/ClockHandView;->y:I
|
|
|
|
.line 74
|
|
.line 75
|
|
invoke-virtual {v8}, Landroid/view/View;->invalidate()V
|
|
|
|
.line 76
|
|
.line 77
|
|
.line 78
|
|
if-eqz v3, :cond_6
|
|
|
|
.line 79
|
|
.line 80
|
|
iget v3, p0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->g:F
|
|
|
|
.line 81
|
|
.line 82
|
|
goto :goto_4
|
|
|
|
.line 83
|
|
:cond_6
|
|
iget v3, p0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->h:F
|
|
|
|
.line 84
|
|
.line 85
|
|
:goto_4
|
|
iget-object v5, v4, Lcom/google/android/material/timepicker/TimePickerView;->y:Lcom/google/android/material/timepicker/ClockHandView;
|
|
|
|
.line 86
|
|
.line 87
|
|
invoke-virtual {v5, v3, p2}, Lcom/google/android/material/timepicker/ClockHandView;->c(FZ)V
|
|
|
|
.line 88
|
|
.line 89
|
|
.line 90
|
|
if-ne p1, v2, :cond_7
|
|
|
|
.line 91
|
|
.line 92
|
|
move p2, v1
|
|
|
|
.line 93
|
|
goto :goto_5
|
|
|
|
.line 94
|
|
:cond_7
|
|
move p2, v0
|
|
|
|
.line 95
|
|
:goto_5
|
|
invoke-virtual {v7, p2}, Lcom/google/android/material/chip/Chip;->setChecked(Z)V
|
|
|
|
.line 96
|
|
.line 97
|
|
.line 98
|
|
if-eqz p2, :cond_8
|
|
|
|
.line 99
|
|
.line 100
|
|
move p2, v11
|
|
|
|
.line 101
|
|
goto :goto_6
|
|
|
|
.line 102
|
|
:cond_8
|
|
move p2, v0
|
|
|
|
.line 103
|
|
:goto_6
|
|
invoke-virtual {v7, p2}, Landroid/view/View;->setAccessibilityLiveRegion(I)V
|
|
|
|
.line 104
|
|
.line 105
|
|
.line 106
|
|
if-ne p1, v12, :cond_9
|
|
|
|
.line 107
|
|
.line 108
|
|
goto :goto_7
|
|
|
|
.line 109
|
|
:cond_9
|
|
move v1, v0
|
|
|
|
.line 110
|
|
:goto_7
|
|
invoke-virtual {v6, v1}, Lcom/google/android/material/chip/Chip;->setChecked(Z)V
|
|
|
|
.line 111
|
|
.line 112
|
|
.line 113
|
|
if-eqz v1, :cond_a
|
|
|
|
.line 114
|
|
.line 115
|
|
move v0, v11
|
|
|
|
.line 116
|
|
:cond_a
|
|
invoke-virtual {v6, v0}, Landroid/view/View;->setAccessibilityLiveRegion(I)V
|
|
|
|
.line 117
|
|
.line 118
|
|
.line 119
|
|
new-instance p1, Lcom/google/android/material/timepicker/TimePickerClockPresenter$1;
|
|
|
|
.line 120
|
|
.line 121
|
|
invoke-virtual {v4}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 122
|
|
.line 123
|
|
.line 124
|
|
move-result-object p2
|
|
|
|
.line 125
|
|
sget v0, Lcom/google/android/material/R$string;->material_hour_selection:I
|
|
|
|
.line 126
|
|
.line 127
|
|
invoke-direct {p1, p0, p2, v0}, Lcom/google/android/material/timepicker/TimePickerClockPresenter$1;-><init>(Lcom/google/android/material/timepicker/TimePickerClockPresenter;Landroid/content/Context;I)V
|
|
|
|
.line 128
|
|
.line 129
|
|
.line 130
|
|
invoke-static {v6, p1}, Landroidx/core/view/ViewCompat;->z(Landroid/view/View;Landroidx/core/view/AccessibilityDelegateCompat;)V
|
|
|
|
.line 131
|
|
.line 132
|
|
.line 133
|
|
new-instance p1, Lcom/google/android/material/timepicker/TimePickerClockPresenter$2;
|
|
|
|
.line 134
|
|
.line 135
|
|
invoke-virtual {v4}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 136
|
|
.line 137
|
|
.line 138
|
|
move-result-object p2
|
|
|
|
.line 139
|
|
sget v0, Lcom/google/android/material/R$string;->material_minute_selection:I
|
|
|
|
.line 140
|
|
.line 141
|
|
invoke-direct {p1, p0, p2, v0}, Lcom/google/android/material/timepicker/TimePickerClockPresenter$2;-><init>(Lcom/google/android/material/timepicker/TimePickerClockPresenter;Landroid/content/Context;I)V
|
|
|
|
.line 142
|
|
.line 143
|
|
.line 144
|
|
invoke-static {v7, p1}, Landroidx/core/view/ViewCompat;->z(Landroid/view/View;Landroidx/core/view/AccessibilityDelegateCompat;)V
|
|
|
|
.line 145
|
|
.line 146
|
|
.line 147
|
|
return-void
|
|
.end method
|
|
|
|
.method public final e()V
|
|
.locals 8
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->f:Lcom/google/android/material/timepicker/TimeModel;
|
|
|
|
.line 2
|
|
.line 3
|
|
iget v1, v0, Lcom/google/android/material/timepicker/TimeModel;->k:I
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-virtual {v0}, Lcom/google/android/material/timepicker/TimeModel;->b()I
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result v2
|
|
|
|
.line 9
|
|
iget v0, v0, Lcom/google/android/material/timepicker/TimeModel;->i:I
|
|
|
|
.line 10
|
|
.line 11
|
|
iget-object v3, p0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->c:Lcom/google/android/material/timepicker/TimePickerView;
|
|
|
|
.line 12
|
|
.line 13
|
|
iget-object v4, v3, Lcom/google/android/material/timepicker/TimePickerView;->x:Lcom/google/android/material/chip/Chip;
|
|
|
|
.line 14
|
|
.line 15
|
|
iget-object v5, v3, Lcom/google/android/material/timepicker/TimePickerView;->w:Lcom/google/android/material/chip/Chip;
|
|
|
|
.line 16
|
|
.line 17
|
|
const/4 v6, 0x1
|
|
|
|
.line 18
|
|
if-ne v1, v6, :cond_0
|
|
|
|
.line 19
|
|
.line 20
|
|
sget v1, Lcom/google/android/material/R$id;->material_clock_period_pm_button:I
|
|
|
|
.line 21
|
|
.line 22
|
|
goto :goto_0
|
|
|
|
.line 23
|
|
:cond_0
|
|
sget v1, Lcom/google/android/material/R$id;->material_clock_period_am_button:I
|
|
|
|
.line 24
|
|
.line 25
|
|
:goto_0
|
|
iget-object v7, v3, Lcom/google/android/material/timepicker/TimePickerView;->A:Lcom/google/android/material/button/MaterialButtonToggleGroup;
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-virtual {v7, v1, v6}, Lcom/google/android/material/button/MaterialButtonToggleGroup;->f(IZ)V
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
invoke-virtual {v3}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 31
|
|
.line 32
|
|
.line 33
|
|
move-result-object v1
|
|
|
|
.line 34
|
|
invoke-virtual {v1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
move-result-object v1
|
|
|
|
.line 38
|
|
iget-object v1, v1, Landroid/content/res/Configuration;->locale:Ljava/util/Locale;
|
|
|
|
.line 39
|
|
.line 40
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result-object v0
|
|
|
|
.line 44
|
|
new-array v3, v6, [Ljava/lang/Object;
|
|
|
|
.line 45
|
|
.line 46
|
|
const/4 v7, 0x0
|
|
|
|
.line 47
|
|
aput-object v0, v3, v7
|
|
|
|
.line 48
|
|
.line 49
|
|
const-string v0, "%02d"
|
|
|
|
.line 50
|
|
.line 51
|
|
invoke-static {v1, v0, v3}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
move-result-object v3
|
|
|
|
.line 55
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
.line 56
|
|
.line 57
|
|
.line 58
|
|
move-result-object v2
|
|
|
|
.line 59
|
|
new-array v6, v6, [Ljava/lang/Object;
|
|
|
|
.line 60
|
|
.line 61
|
|
aput-object v2, v6, v7
|
|
|
|
.line 62
|
|
.line 63
|
|
invoke-static {v1, v0, v6}, Ljava/lang/String;->format(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
.line 64
|
|
.line 65
|
|
.line 66
|
|
move-result-object v0
|
|
|
|
.line 67
|
|
invoke-virtual {v5}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;
|
|
|
|
.line 68
|
|
.line 69
|
|
.line 70
|
|
move-result-object v1
|
|
|
|
.line 71
|
|
invoke-static {v1, v3}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
|
|
|
|
.line 72
|
|
.line 73
|
|
.line 74
|
|
move-result v1
|
|
|
|
.line 75
|
|
if-nez v1, :cond_1
|
|
|
|
.line 76
|
|
.line 77
|
|
invoke-virtual {v5, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 78
|
|
.line 79
|
|
.line 80
|
|
:cond_1
|
|
invoke-virtual {v4}, Landroid/widget/TextView;->getText()Ljava/lang/CharSequence;
|
|
|
|
.line 81
|
|
.line 82
|
|
.line 83
|
|
move-result-object v1
|
|
|
|
.line 84
|
|
invoke-static {v1, v0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z
|
|
|
|
.line 85
|
|
.line 86
|
|
.line 87
|
|
move-result v1
|
|
|
|
.line 88
|
|
if-nez v1, :cond_2
|
|
|
|
.line 89
|
|
.line 90
|
|
invoke-virtual {v4, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
.line 91
|
|
.line 92
|
|
.line 93
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public final f(Ljava/lang/String;[Ljava/lang/String;)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
const/4 v0, 0x0
|
|
|
|
.line 2
|
|
:goto_0
|
|
array-length v1, p2
|
|
|
|
.line 3
|
|
if-ge v0, v1, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iget-object v1, p0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->c:Lcom/google/android/material/timepicker/TimePickerView;
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v1}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
aget-object v2, p2, v0
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-static {v1, v2, p1}, Lcom/google/android/material/timepicker/TimeModel;->a(Landroid/content/res/Resources;Ljava/lang/CharSequence;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result-object v1
|
|
|
|
.line 17
|
|
aput-object v1, p2, v0
|
|
|
|
.line 18
|
|
.line 19
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
.line 20
|
|
.line 21
|
|
goto :goto_0
|
|
|
|
.line 22
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final invalidate()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->f:Lcom/google/android/material/timepicker/TimeModel;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Lcom/google/android/material/timepicker/TimeModel;->b()I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v1
|
|
|
|
.line 7
|
|
mul-int/lit8 v1, v1, 0x1e
|
|
|
|
.line 8
|
|
.line 9
|
|
rem-int/lit16 v1, v1, 0x168
|
|
|
|
.line 10
|
|
.line 11
|
|
int-to-float v1, v1
|
|
|
|
.line 12
|
|
iput v1, p0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->h:F
|
|
|
|
.line 13
|
|
.line 14
|
|
iget v1, v0, Lcom/google/android/material/timepicker/TimeModel;->i:I
|
|
|
|
.line 15
|
|
.line 16
|
|
mul-int/lit8 v1, v1, 0x6
|
|
|
|
.line 17
|
|
.line 18
|
|
int-to-float v1, v1
|
|
|
|
.line 19
|
|
iput v1, p0, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->g:F
|
|
|
|
.line 20
|
|
.line 21
|
|
iget v0, v0, Lcom/google/android/material/timepicker/TimeModel;->j:I
|
|
|
|
.line 22
|
|
.line 23
|
|
const/4 v1, 0x0
|
|
|
|
.line 24
|
|
invoke-virtual {p0, v0, v1}, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->d(IZ)V
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
invoke-virtual {p0}, Lcom/google/android/material/timepicker/TimePickerClockPresenter;->e()V
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
return-void
|
|
.end method
|