* 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>
1110 lines
25 KiB
Smali
1110 lines
25 KiB
Smali
.class Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;
|
|
.super Lcom/google/android/material/textfield/EndIconDelegate;
|
|
.source "SourceFile"
|
|
|
|
|
|
# instance fields
|
|
.field public final e:I
|
|
|
|
.field public final f:I
|
|
|
|
.field public final g:Landroid/animation/TimeInterpolator;
|
|
|
|
.field public h:Landroid/widget/AutoCompleteTextView;
|
|
|
|
.field public final i:Lcom/google/android/material/textfield/a;
|
|
|
|
.field public final j:Lcom/google/android/material/textfield/b;
|
|
|
|
.field public final k:Lcom/google/android/material/textfield/g;
|
|
|
|
.field public l:Z
|
|
|
|
.field public m:Z
|
|
|
|
.field public n:Z
|
|
|
|
.field public o:J
|
|
|
|
.field public p:Landroid/view/accessibility/AccessibilityManager;
|
|
|
|
.field public q:Landroid/animation/ValueAnimator;
|
|
|
|
.field public r:Landroid/animation/ValueAnimator;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/google/android/material/textfield/EndCompoundLayout;)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1}, Lcom/google/android/material/textfield/EndIconDelegate;-><init>(Lcom/google/android/material/textfield/EndCompoundLayout;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
new-instance v0, Lcom/google/android/material/textfield/a;
|
|
|
|
.line 5
|
|
.line 6
|
|
const/4 v1, 0x1
|
|
|
|
.line 7
|
|
invoke-direct {v0, p0, v1}, Lcom/google/android/material/textfield/a;-><init>(Lcom/google/android/material/textfield/EndIconDelegate;I)V
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
iput-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->i:Lcom/google/android/material/textfield/a;
|
|
|
|
.line 11
|
|
.line 12
|
|
new-instance v0, Lcom/google/android/material/textfield/b;
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-direct {v0, p0, v1}, Lcom/google/android/material/textfield/b;-><init>(Lcom/google/android/material/textfield/EndIconDelegate;I)V
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
iput-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->j:Lcom/google/android/material/textfield/b;
|
|
|
|
.line 18
|
|
.line 19
|
|
new-instance v0, Lcom/google/android/material/textfield/g;
|
|
|
|
.line 20
|
|
.line 21
|
|
invoke-direct {v0, p0}, Lcom/google/android/material/textfield/g;-><init>(Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;)V
|
|
|
|
.line 22
|
|
.line 23
|
|
.line 24
|
|
iput-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->k:Lcom/google/android/material/textfield/g;
|
|
|
|
.line 25
|
|
.line 26
|
|
const-wide v0, 0x7fffffffffffffffL
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
iput-wide v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->o:J
|
|
|
|
.line 32
|
|
.line 33
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
move-result-object v0
|
|
|
|
.line 37
|
|
sget v1, Lcom/google/android/material/R$attr;->motionDurationShort3:I
|
|
|
|
.line 38
|
|
.line 39
|
|
const/16 v2, 0x43
|
|
|
|
.line 40
|
|
.line 41
|
|
invoke-static {v0, v1, v2}, Lcom/google/android/material/motion/MotionUtils;->c(Landroid/content/Context;II)I
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
move-result v0
|
|
|
|
.line 45
|
|
iput v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->f:I
|
|
|
|
.line 46
|
|
.line 47
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
move-result-object v0
|
|
|
|
.line 51
|
|
sget v1, Lcom/google/android/material/R$attr;->motionDurationShort3:I
|
|
|
|
.line 52
|
|
.line 53
|
|
const/16 v2, 0x32
|
|
|
|
.line 54
|
|
.line 55
|
|
invoke-static {v0, v1, v2}, Lcom/google/android/material/motion/MotionUtils;->c(Landroid/content/Context;II)I
|
|
|
|
.line 56
|
|
.line 57
|
|
.line 58
|
|
move-result v0
|
|
|
|
.line 59
|
|
iput v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->e:I
|
|
|
|
.line 60
|
|
.line 61
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 62
|
|
.line 63
|
|
.line 64
|
|
move-result-object p1
|
|
|
|
.line 65
|
|
sget v0, Lcom/google/android/material/R$attr;->motionEasingLinearInterpolator:I
|
|
|
|
.line 66
|
|
.line 67
|
|
sget-object v1, Lcom/google/android/material/animation/AnimationUtils;->a:Landroid/view/animation/LinearInterpolator;
|
|
|
|
.line 68
|
|
.line 69
|
|
invoke-static {p1, v0, v1}, Lcom/google/android/material/motion/MotionUtils;->d(Landroid/content/Context;ILandroid/animation/TimeInterpolator;)Landroid/animation/TimeInterpolator;
|
|
|
|
.line 70
|
|
.line 71
|
|
.line 72
|
|
move-result-object p1
|
|
|
|
.line 73
|
|
iput-object p1, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->g:Landroid/animation/TimeInterpolator;
|
|
|
|
.line 74
|
|
.line 75
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->p:Landroid/view/accessibility/AccessibilityManager;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Landroid/view/accessibility/AccessibilityManager;->isTouchExplorationEnabled()Z
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v0
|
|
|
|
.line 7
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->h:Landroid/widget/AutoCompleteTextView;
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getInputType()I
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result v0
|
|
|
|
.line 15
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/EndIconDelegate;->d:Lcom/google/android/material/internal/CheckableImageButton;
|
|
|
|
.line 18
|
|
.line 19
|
|
invoke-virtual {v0}, Landroid/view/View;->hasFocus()Z
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result v0
|
|
|
|
.line 23
|
|
if-nez v0, :cond_0
|
|
|
|
.line 24
|
|
.line 25
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->h:Landroid/widget/AutoCompleteTextView;
|
|
|
|
.line 26
|
|
.line 27
|
|
invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->dismissDropDown()V
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->h:Landroid/widget/AutoCompleteTextView;
|
|
|
|
.line 31
|
|
.line 32
|
|
new-instance v1, Lcom/google/android/material/textfield/d;
|
|
|
|
.line 33
|
|
.line 34
|
|
const/4 v2, 0x1
|
|
|
|
.line 35
|
|
invoke-direct {v1, v2, p0}, Lcom/google/android/material/textfield/d;-><init>(ILjava/lang/Object;)V
|
|
|
|
.line 36
|
|
.line 37
|
|
.line 38
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->post(Ljava/lang/Runnable;)Z
|
|
|
|
.line 39
|
|
.line 40
|
|
.line 41
|
|
return-void
|
|
.end method
|
|
|
|
.method public final c()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
sget v0, Lcom/google/android/material/R$string;->exposed_dropdown_menu_content_description:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public final d()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
sget v0, Lcom/google/android/material/R$drawable;->mtrl_dropdown_arrow:I
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public final e()Landroid/view/View$OnFocusChangeListener;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->j:Lcom/google/android/material/textfield/b;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final f()Landroid/view/View$OnClickListener;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->i:Lcom/google/android/material/textfield/a;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final h()Landroid/view/accessibility/AccessibilityManager$TouchExplorationStateChangeListener;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->k:Lcom/google/android/material/textfield/g;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final i(I)Z
|
|
.locals 0
|
|
|
|
.line 1
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final k()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->n:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
return v0
|
|
.end method
|
|
|
|
.method public final l(Landroid/widget/EditText;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
instance-of v0, p1, Landroid/widget/AutoCompleteTextView;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 4
|
|
.line 5
|
|
move-object v0, p1
|
|
|
|
.line 6
|
|
check-cast v0, Landroid/widget/AutoCompleteTextView;
|
|
|
|
.line 7
|
|
.line 8
|
|
iput-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->h:Landroid/widget/AutoCompleteTextView;
|
|
|
|
.line 9
|
|
.line 10
|
|
new-instance v1, Lcom/google/android/material/textfield/e;
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-direct {v1, p0}, Lcom/google/android/material/textfield/e;-><init>(Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;)V
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
|
|
|
|
.line 16
|
|
.line 17
|
|
.line 18
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->h:Landroid/widget/AutoCompleteTextView;
|
|
|
|
.line 19
|
|
.line 20
|
|
new-instance v1, Lcom/google/android/material/textfield/f;
|
|
|
|
.line 21
|
|
.line 22
|
|
invoke-direct {v1, p0}, Lcom/google/android/material/textfield/f;-><init>(Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;)V
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
invoke-virtual {v0, v1}, Landroid/widget/AutoCompleteTextView;->setOnDismissListener(Landroid/widget/AutoCompleteTextView$OnDismissListener;)V
|
|
|
|
.line 26
|
|
.line 27
|
|
.line 28
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->h:Landroid/widget/AutoCompleteTextView;
|
|
|
|
.line 29
|
|
.line 30
|
|
const/4 v1, 0x0
|
|
|
|
.line 31
|
|
invoke-virtual {v0, v1}, Landroid/widget/AutoCompleteTextView;->setThreshold(I)V
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
const/4 v0, 0x0
|
|
|
|
.line 35
|
|
iget-object v1, p0, Lcom/google/android/material/textfield/EndIconDelegate;->a:Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
.line 36
|
|
.line 37
|
|
invoke-virtual {v1, v0}, Lcom/google/android/material/textfield/TextInputLayout;->setErrorIconDrawable(Landroid/graphics/drawable/Drawable;)V
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
invoke-virtual {p1}, Landroid/widget/TextView;->getInputType()I
|
|
|
|
.line 41
|
|
.line 42
|
|
.line 43
|
|
move-result p1
|
|
|
|
.line 44
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 45
|
|
.line 46
|
|
goto :goto_0
|
|
|
|
.line 47
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->p:Landroid/view/accessibility/AccessibilityManager;
|
|
|
|
.line 48
|
|
.line 49
|
|
invoke-virtual {p1}, Landroid/view/accessibility/AccessibilityManager;->isTouchExplorationEnabled()Z
|
|
|
|
.line 50
|
|
.line 51
|
|
.line 52
|
|
move-result p1
|
|
|
|
.line 53
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 54
|
|
.line 55
|
|
iget-object p1, p0, Lcom/google/android/material/textfield/EndIconDelegate;->d:Lcom/google/android/material/internal/CheckableImageButton;
|
|
|
|
.line 56
|
|
.line 57
|
|
const/4 v0, 0x2
|
|
|
|
.line 58
|
|
invoke-virtual {p1, v0}, Landroid/view/View;->setImportantForAccessibility(I)V
|
|
|
|
.line 59
|
|
.line 60
|
|
.line 61
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p1, 0x1
|
|
|
|
.line 62
|
|
invoke-virtual {v1, p1}, Lcom/google/android/material/textfield/TextInputLayout;->setEndIconVisible(Z)V
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
return-void
|
|
|
|
.line 66
|
|
:cond_2
|
|
new-instance p1, Ljava/lang/RuntimeException;
|
|
|
|
.line 67
|
|
.line 68
|
|
const-string v0, "EditText needs to be an AutoCompleteTextView if an Exposed Dropdown Menu is being used."
|
|
|
|
.line 69
|
|
.line 70
|
|
invoke-direct {p1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
.line 71
|
|
.line 72
|
|
.line 73
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final m(Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->h:Landroid/widget/AutoCompleteTextView;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getInputType()I
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v0
|
|
|
|
.line 7
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
goto :goto_0
|
|
|
|
.line 10
|
|
:cond_0
|
|
const-class v0, Landroid/widget/Spinner;
|
|
|
|
.line 11
|
|
.line 12
|
|
invoke-virtual {v0}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result-object v0
|
|
|
|
.line 16
|
|
invoke-virtual {p1, v0}, Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat;->k(Ljava/lang/CharSequence;)V
|
|
|
|
.line 17
|
|
.line 18
|
|
.line 19
|
|
:goto_0
|
|
invoke-virtual {p1}, Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat;->h()Z
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
move-result v0
|
|
|
|
.line 23
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 24
|
|
.line 25
|
|
const/4 v0, 0x0
|
|
|
|
.line 26
|
|
invoke-virtual {p1, v0}, Landroidx/core/view/accessibility/AccessibilityNodeInfoCompat;->q(Ljava/lang/String;)V
|
|
|
|
.line 27
|
|
.line 28
|
|
.line 29
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final n(Landroid/view/accessibility/AccessibilityEvent;)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->p:Landroid/view/accessibility/AccessibilityManager;
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-virtual {v0}, Landroid/view/accessibility/AccessibilityManager;->isEnabled()Z
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
move-result v0
|
|
|
|
.line 7
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->h:Landroid/widget/AutoCompleteTextView;
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {v0}, Landroid/widget/TextView;->getInputType()I
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result v0
|
|
|
|
.line 15
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
return-void
|
|
|
|
.line 18
|
|
:cond_0
|
|
invoke-virtual {p1}, Landroid/view/accessibility/AccessibilityEvent;->getEventType()I
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result v0
|
|
|
|
.line 22
|
|
const v1, 0x8000
|
|
|
|
.line 23
|
|
.line 24
|
|
.line 25
|
|
const/4 v2, 0x1
|
|
|
|
.line 26
|
|
if-eq v0, v1, :cond_1
|
|
|
|
.line 27
|
|
.line 28
|
|
invoke-virtual {p1}, Landroid/view/accessibility/AccessibilityEvent;->getEventType()I
|
|
|
|
.line 29
|
|
.line 30
|
|
.line 31
|
|
move-result v0
|
|
|
|
.line 32
|
|
const/16 v1, 0x8
|
|
|
|
.line 33
|
|
.line 34
|
|
if-ne v0, v1, :cond_2
|
|
|
|
.line 35
|
|
.line 36
|
|
:cond_1
|
|
iget-boolean v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->n:Z
|
|
|
|
.line 37
|
|
.line 38
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 39
|
|
.line 40
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->h:Landroid/widget/AutoCompleteTextView;
|
|
|
|
.line 41
|
|
.line 42
|
|
invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->isPopupShowing()Z
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
move-result v0
|
|
|
|
.line 46
|
|
if-nez v0, :cond_2
|
|
|
|
.line 47
|
|
.line 48
|
|
move v0, v2
|
|
|
|
.line 49
|
|
goto :goto_0
|
|
|
|
.line 50
|
|
:cond_2
|
|
const/4 v0, 0x0
|
|
|
|
.line 51
|
|
:goto_0
|
|
invoke-virtual {p1}, Landroid/view/accessibility/AccessibilityEvent;->getEventType()I
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
move-result p1
|
|
|
|
.line 55
|
|
if-eq p1, v2, :cond_3
|
|
|
|
.line 56
|
|
.line 57
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 58
|
|
.line 59
|
|
:cond_3
|
|
invoke-virtual {p0}, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->t()V
|
|
|
|
.line 60
|
|
.line 61
|
|
.line 62
|
|
iput-boolean v2, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->m:Z
|
|
|
|
.line 63
|
|
.line 64
|
|
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
|
|
|
|
.line 65
|
|
.line 66
|
|
.line 67
|
|
move-result-wide v0
|
|
|
|
.line 68
|
|
iput-wide v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->o:J
|
|
|
|
.line 69
|
|
.line 70
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public final q()V
|
|
.locals 5
|
|
|
|
.line 1
|
|
const/4 v0, 0x2
|
|
|
|
.line 2
|
|
new-array v1, v0, [F
|
|
|
|
.line 3
|
|
.line 4
|
|
fill-array-data v1, :array_0
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
invoke-static {v1}, Landroid/animation/ValueAnimator;->ofFloat([F)Landroid/animation/ValueAnimator;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v1
|
|
|
|
.line 11
|
|
iget-object v2, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->g:Landroid/animation/TimeInterpolator;
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {v1, v2}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
iget v3, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->f:I
|
|
|
|
.line 17
|
|
.line 18
|
|
int-to-long v3, v3
|
|
|
|
.line 19
|
|
invoke-virtual {v1, v3, v4}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
|
|
|
|
.line 20
|
|
.line 21
|
|
.line 22
|
|
new-instance v3, Lcom/google/android/material/textfield/c;
|
|
|
|
.line 23
|
|
.line 24
|
|
invoke-direct {v3, p0, v0}, Lcom/google/android/material/textfield/c;-><init>(Lcom/google/android/material/textfield/EndIconDelegate;I)V
|
|
|
|
.line 25
|
|
.line 26
|
|
.line 27
|
|
invoke-virtual {v1, v3}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
iput-object v1, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->r:Landroid/animation/ValueAnimator;
|
|
|
|
.line 31
|
|
.line 32
|
|
new-array v1, v0, [F
|
|
|
|
.line 33
|
|
.line 34
|
|
fill-array-data v1, :array_1
|
|
|
|
.line 35
|
|
.line 36
|
|
.line 37
|
|
invoke-static {v1}, Landroid/animation/ValueAnimator;->ofFloat([F)Landroid/animation/ValueAnimator;
|
|
|
|
.line 38
|
|
.line 39
|
|
.line 40
|
|
move-result-object v1
|
|
|
|
.line 41
|
|
invoke-virtual {v1, v2}, Landroid/animation/ValueAnimator;->setInterpolator(Landroid/animation/TimeInterpolator;)V
|
|
|
|
.line 42
|
|
.line 43
|
|
.line 44
|
|
iget v2, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->e:I
|
|
|
|
.line 45
|
|
.line 46
|
|
int-to-long v2, v2
|
|
|
|
.line 47
|
|
invoke-virtual {v1, v2, v3}, Landroid/animation/ValueAnimator;->setDuration(J)Landroid/animation/ValueAnimator;
|
|
|
|
.line 48
|
|
.line 49
|
|
.line 50
|
|
new-instance v2, Lcom/google/android/material/textfield/c;
|
|
|
|
.line 51
|
|
.line 52
|
|
invoke-direct {v2, p0, v0}, Lcom/google/android/material/textfield/c;-><init>(Lcom/google/android/material/textfield/EndIconDelegate;I)V
|
|
|
|
.line 53
|
|
.line 54
|
|
.line 55
|
|
invoke-virtual {v1, v2}, Landroid/animation/ValueAnimator;->addUpdateListener(Landroid/animation/ValueAnimator$AnimatorUpdateListener;)V
|
|
|
|
.line 56
|
|
.line 57
|
|
.line 58
|
|
iput-object v1, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->q:Landroid/animation/ValueAnimator;
|
|
|
|
.line 59
|
|
.line 60
|
|
new-instance v0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate$1;
|
|
|
|
.line 61
|
|
.line 62
|
|
invoke-direct {v0, p0}, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate$1;-><init>(Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;)V
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
invoke-virtual {v1, v0}, Landroid/animation/Animator;->addListener(Landroid/animation/Animator$AnimatorListener;)V
|
|
|
|
.line 66
|
|
.line 67
|
|
.line 68
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/EndIconDelegate;->c:Landroid/content/Context;
|
|
|
|
.line 69
|
|
.line 70
|
|
const-string v1, "accessibility"
|
|
|
|
.line 71
|
|
.line 72
|
|
invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 73
|
|
.line 74
|
|
.line 75
|
|
move-result-object v0
|
|
|
|
.line 76
|
|
check-cast v0, Landroid/view/accessibility/AccessibilityManager;
|
|
|
|
.line 77
|
|
.line 78
|
|
iput-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->p:Landroid/view/accessibility/AccessibilityManager;
|
|
|
|
.line 79
|
|
.line 80
|
|
return-void
|
|
|
|
.line 81
|
|
:array_0
|
|
.array-data 4
|
|
0x0
|
|
0x3f800000 # 1.0f
|
|
.end array-data
|
|
|
|
.line 82
|
|
.line 83
|
|
.line 84
|
|
.line 85
|
|
.line 86
|
|
.line 87
|
|
.line 88
|
|
.line 89
|
|
:array_1
|
|
.array-data 4
|
|
0x3f800000 # 1.0f
|
|
0x0
|
|
.end array-data
|
|
.end method
|
|
|
|
.method public final r()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->h:Landroid/widget/AutoCompleteTextView;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
const/4 v1, 0x0
|
|
|
|
.line 6
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->h:Landroid/widget/AutoCompleteTextView;
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {v0, v1}, Landroid/widget/AutoCompleteTextView;->setOnDismissListener(Landroid/widget/AutoCompleteTextView$OnDismissListener;)V
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final s(Z)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->n:Z
|
|
|
|
.line 2
|
|
.line 3
|
|
if-eq v0, p1, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
iput-boolean p1, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->n:Z
|
|
|
|
.line 6
|
|
.line 7
|
|
iget-object p1, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->r:Landroid/animation/ValueAnimator;
|
|
|
|
.line 8
|
|
.line 9
|
|
invoke-virtual {p1}, Landroid/animation/ValueAnimator;->cancel()V
|
|
|
|
.line 10
|
|
.line 11
|
|
.line 12
|
|
iget-object p1, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->q:Landroid/animation/ValueAnimator;
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {p1}, Landroid/animation/ValueAnimator;->start()V
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final t()V
|
|
.locals 6
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->h:Landroid/widget/AutoCompleteTextView;
|
|
|
|
.line 2
|
|
.line 3
|
|
if-nez v0, :cond_0
|
|
|
|
.line 4
|
|
.line 5
|
|
return-void
|
|
|
|
.line 6
|
|
:cond_0
|
|
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
|
|
|
|
.line 7
|
|
.line 8
|
|
.line 9
|
|
move-result-wide v0
|
|
|
|
.line 10
|
|
iget-wide v2, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->o:J
|
|
|
|
.line 11
|
|
.line 12
|
|
sub-long/2addr v0, v2
|
|
|
|
.line 13
|
|
const-wide/16 v2, 0x0
|
|
|
|
.line 14
|
|
.line 15
|
|
cmp-long v2, v0, v2
|
|
|
|
.line 16
|
|
.line 17
|
|
const/4 v3, 0x0
|
|
|
|
.line 18
|
|
if-ltz v2, :cond_1
|
|
|
|
.line 19
|
|
.line 20
|
|
const-wide/16 v4, 0x12c
|
|
|
|
.line 21
|
|
.line 22
|
|
cmp-long v0, v0, v4
|
|
|
|
.line 23
|
|
.line 24
|
|
if-lez v0, :cond_2
|
|
|
|
.line 25
|
|
.line 26
|
|
:cond_1
|
|
iput-boolean v3, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->m:Z
|
|
|
|
.line 27
|
|
.line 28
|
|
:cond_2
|
|
iget-boolean v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->m:Z
|
|
|
|
.line 29
|
|
.line 30
|
|
if-nez v0, :cond_4
|
|
|
|
.line 31
|
|
.line 32
|
|
iget-boolean v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->n:Z
|
|
|
|
.line 33
|
|
.line 34
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
.line 35
|
|
.line 36
|
|
invoke-virtual {p0, v0}, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->s(Z)V
|
|
|
|
.line 37
|
|
.line 38
|
|
.line 39
|
|
iget-boolean v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->n:Z
|
|
|
|
.line 40
|
|
.line 41
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 42
|
|
.line 43
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->h:Landroid/widget/AutoCompleteTextView;
|
|
|
|
.line 44
|
|
.line 45
|
|
invoke-virtual {v0}, Landroid/view/View;->requestFocus()Z
|
|
|
|
.line 46
|
|
.line 47
|
|
.line 48
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->h:Landroid/widget/AutoCompleteTextView;
|
|
|
|
.line 49
|
|
.line 50
|
|
invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->showDropDown()V
|
|
|
|
.line 51
|
|
.line 52
|
|
.line 53
|
|
return-void
|
|
|
|
.line 54
|
|
:cond_3
|
|
iget-object v0, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->h:Landroid/widget/AutoCompleteTextView;
|
|
|
|
.line 55
|
|
.line 56
|
|
invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->dismissDropDown()V
|
|
|
|
.line 57
|
|
.line 58
|
|
.line 59
|
|
return-void
|
|
|
|
.line 60
|
|
:cond_4
|
|
iput-boolean v3, p0, Lcom/google/android/material/textfield/DropdownMenuEndIconDelegate;->m:Z
|
|
|
|
.line 61
|
|
.line 62
|
|
return-void
|
|
.end method
|