* 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>
809 lines
16 KiB
Smali
809 lines
16 KiB
Smali
.class public Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
|
|
.super Landroidx/appcompat/widget/AppCompatAutoCompleteTextView;
|
|
.source "SourceFile"
|
|
|
|
|
|
# annotations
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/appcompat/widget/SearchView;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "SearchAutoComplete"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public i:I
|
|
|
|
.field public j:Landroidx/appcompat/widget/SearchView;
|
|
|
|
.field public k:Z
|
|
|
|
.field public final l:Ljava/lang/Runnable;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
sget v0, Landroidx/appcompat/R$attr;->autoCompleteTextViewStyle:I
|
|
|
|
.line 2
|
|
.line 3
|
|
invoke-direct {p0, p1, p2, v0}, Landroidx/appcompat/widget/AppCompatAutoCompleteTextView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
.line 4
|
|
.line 5
|
|
.line 6
|
|
new-instance p1, Landroidx/appcompat/widget/SearchView$SearchAutoComplete$1;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-direct {p1, p0}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete$1;-><init>(Landroidx/appcompat/widget/SearchView$SearchAutoComplete;)V
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
iput-object p1, p0, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->l:Ljava/lang/Runnable;
|
|
|
|
.line 12
|
|
.line 13
|
|
invoke-virtual {p0}, Landroid/widget/AutoCompleteTextView;->getThreshold()I
|
|
|
|
.line 14
|
|
.line 15
|
|
.line 16
|
|
move-result p1
|
|
|
|
.line 17
|
|
iput p1, p0, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->i:I
|
|
|
|
.line 18
|
|
.line 19
|
|
return-void
|
|
.end method
|
|
|
|
.method private getSearchViewTextMinWidthDp()I
|
|
.locals 4
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result-object v0
|
|
|
|
.line 9
|
|
iget v1, v0, Landroid/content/res/Configuration;->screenWidthDp:I
|
|
|
|
.line 10
|
|
.line 11
|
|
iget v2, v0, Landroid/content/res/Configuration;->screenHeightDp:I
|
|
|
|
.line 12
|
|
.line 13
|
|
const/16 v3, 0x3c0
|
|
|
|
.line 14
|
|
.line 15
|
|
if-lt v1, v3, :cond_0
|
|
|
|
.line 16
|
|
.line 17
|
|
const/16 v3, 0x2d0
|
|
|
|
.line 18
|
|
.line 19
|
|
if-lt v2, v3, :cond_0
|
|
|
|
.line 20
|
|
.line 21
|
|
iget v0, v0, Landroid/content/res/Configuration;->orientation:I
|
|
|
|
.line 22
|
|
.line 23
|
|
const/4 v3, 0x2
|
|
|
|
.line 24
|
|
if-ne v0, v3, :cond_0
|
|
|
|
.line 25
|
|
.line 26
|
|
const/16 v0, 0x100
|
|
|
|
.line 27
|
|
.line 28
|
|
return v0
|
|
|
|
.line 29
|
|
:cond_0
|
|
const/16 v0, 0x258
|
|
|
|
.line 30
|
|
.line 31
|
|
if-ge v1, v0, :cond_2
|
|
|
|
.line 32
|
|
.line 33
|
|
const/16 v0, 0x280
|
|
|
|
.line 34
|
|
.line 35
|
|
if-lt v1, v0, :cond_1
|
|
|
|
.line 36
|
|
.line 37
|
|
const/16 v0, 0x1e0
|
|
|
|
.line 38
|
|
.line 39
|
|
if-lt v2, v0, :cond_1
|
|
|
|
.line 40
|
|
.line 41
|
|
goto :goto_0
|
|
|
|
.line 42
|
|
:cond_1
|
|
const/16 v0, 0xa0
|
|
|
|
.line 43
|
|
.line 44
|
|
return v0
|
|
|
|
.line 45
|
|
:cond_2
|
|
:goto_0
|
|
const/16 v0, 0xc0
|
|
|
|
.line 46
|
|
.line 47
|
|
return v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final enoughToFilter()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->i:I
|
|
|
|
.line 2
|
|
.line 3
|
|
if-lez v0, :cond_1
|
|
|
|
.line 4
|
|
.line 5
|
|
invoke-super {p0}, Landroid/widget/AutoCompleteTextView;->enoughToFilter()Z
|
|
|
|
.line 6
|
|
.line 7
|
|
.line 8
|
|
move-result v0
|
|
|
|
.line 9
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 10
|
|
.line 11
|
|
goto :goto_0
|
|
|
|
.line 12
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
.line 13
|
|
return v0
|
|
|
|
.line 14
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v0, 0x1
|
|
|
|
.line 15
|
|
return v0
|
|
.end method
|
|
|
|
.method public final onCreateInputConnection(Landroid/view/inputmethod/EditorInfo;)Landroid/view/inputmethod/InputConnection;
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroidx/appcompat/widget/AppCompatAutoCompleteTextView;->onCreateInputConnection(Landroid/view/inputmethod/EditorInfo;)Landroid/view/inputmethod/InputConnection;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object p1
|
|
|
|
.line 5
|
|
iget-boolean v0, p0, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->k:Z
|
|
|
|
.line 6
|
|
.line 7
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 8
|
|
.line 9
|
|
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->l:Ljava/lang/Runnable;
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->removeCallbacks(Ljava/lang/Runnable;)Z
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {p0, v0}, Landroid/view/View;->post(Ljava/lang/Runnable;)Z
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
:cond_0
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final onFinishInflate()V
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-super {p0}, Landroid/widget/AutoCompleteTextView;->onFinishInflate()V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p0}, Landroid/view/View;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result-object v0
|
|
|
|
.line 8
|
|
invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result-object v0
|
|
|
|
.line 12
|
|
invoke-direct {p0}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->getSearchViewTextMinWidthDp()I
|
|
|
|
.line 13
|
|
.line 14
|
|
.line 15
|
|
move-result v1
|
|
|
|
.line 16
|
|
int-to-float v1, v1
|
|
|
|
.line 17
|
|
const/4 v2, 0x1
|
|
|
|
.line 18
|
|
invoke-static {v2, v1, v0}, Landroid/util/TypedValue;->applyDimension(IFLandroid/util/DisplayMetrics;)F
|
|
|
|
.line 19
|
|
.line 20
|
|
.line 21
|
|
move-result v0
|
|
|
|
.line 22
|
|
float-to-int v0, v0
|
|
|
|
.line 23
|
|
invoke-virtual {p0, v0}, Landroid/widget/TextView;->setMinWidth(I)V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onFocusChanged(ZILandroid/graphics/Rect;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0, p1, p2, p3}, Landroid/widget/AutoCompleteTextView;->onFocusChanged(ZILandroid/graphics/Rect;)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iget-object p1, p0, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->j:Landroidx/appcompat/widget/SearchView;
|
|
|
|
.line 5
|
|
.line 6
|
|
iget-boolean p2, p1, Landroidx/appcompat/widget/SearchView;->y:Z
|
|
|
|
.line 7
|
|
.line 8
|
|
iput-boolean p2, p1, Landroidx/appcompat/widget/SearchView;->y:Z
|
|
|
|
.line 9
|
|
.line 10
|
|
const/4 p1, 0x0
|
|
|
|
.line 11
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final onKeyPreIme(ILandroid/view/KeyEvent;)Z
|
|
.locals 2
|
|
|
|
.line 1
|
|
const/4 v0, 0x4
|
|
|
|
.line 2
|
|
if-ne p1, v0, :cond_4
|
|
|
|
.line 3
|
|
.line 4
|
|
invoke-virtual {p2}, Landroid/view/KeyEvent;->getAction()I
|
|
|
|
.line 5
|
|
.line 6
|
|
.line 7
|
|
move-result v0
|
|
|
|
.line 8
|
|
const/4 v1, 0x1
|
|
|
|
.line 9
|
|
if-nez v0, :cond_1
|
|
|
|
.line 10
|
|
.line 11
|
|
invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I
|
|
|
|
.line 12
|
|
.line 13
|
|
.line 14
|
|
move-result v0
|
|
|
|
.line 15
|
|
if-nez v0, :cond_1
|
|
|
|
.line 16
|
|
.line 17
|
|
invoke-virtual {p0}, Landroid/view/View;->getKeyDispatcherState()Landroid/view/KeyEvent$DispatcherState;
|
|
|
|
.line 18
|
|
.line 19
|
|
.line 20
|
|
move-result-object p1
|
|
|
|
.line 21
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {p1, p2, p0}, Landroid/view/KeyEvent$DispatcherState;->startTracking(Landroid/view/KeyEvent;Ljava/lang/Object;)V
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
:cond_0
|
|
return v1
|
|
|
|
.line 27
|
|
:cond_1
|
|
invoke-virtual {p2}, Landroid/view/KeyEvent;->getAction()I
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
move-result v0
|
|
|
|
.line 31
|
|
if-ne v0, v1, :cond_4
|
|
|
|
.line 32
|
|
.line 33
|
|
invoke-virtual {p0}, Landroid/view/View;->getKeyDispatcherState()Landroid/view/KeyEvent$DispatcherState;
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
move-result-object v0
|
|
|
|
.line 37
|
|
if-eqz v0, :cond_2
|
|
|
|
.line 38
|
|
.line 39
|
|
invoke-virtual {v0, p2}, Landroid/view/KeyEvent$DispatcherState;->handleUpEvent(Landroid/view/KeyEvent;)V
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
:cond_2
|
|
invoke-virtual {p2}, Landroid/view/KeyEvent;->isTracking()Z
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
move-result v0
|
|
|
|
.line 46
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 47
|
|
.line 48
|
|
invoke-virtual {p2}, Landroid/view/KeyEvent;->isCanceled()Z
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
move-result v0
|
|
|
|
.line 52
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 53
|
|
.line 54
|
|
goto :goto_0
|
|
|
|
.line 55
|
|
:cond_3
|
|
iget-object p1, p0, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->j:Landroidx/appcompat/widget/SearchView;
|
|
|
|
.line 56
|
|
.line 57
|
|
invoke-virtual {p1}, Landroidx/appcompat/widget/SearchView;->clearFocus()V
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
const/4 p1, 0x0
|
|
|
|
.line 61
|
|
throw p1
|
|
|
|
.line 62
|
|
:cond_4
|
|
:goto_0
|
|
invoke-super {p0, p1, p2}, Landroid/widget/AutoCompleteTextView;->onKeyPreIme(ILandroid/view/KeyEvent;)Z
|
|
|
|
.line 63
|
|
.line 64
|
|
.line 65
|
|
move-result p1
|
|
|
|
.line 66
|
|
return p1
|
|
.end method
|
|
|
|
.method public final onWindowFocusChanged(Z)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/AutoCompleteTextView;->onWindowFocusChanged(Z)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 5
|
|
.line 6
|
|
iget-object p1, p0, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->j:Landroidx/appcompat/widget/SearchView;
|
|
|
|
.line 7
|
|
.line 8
|
|
invoke-virtual {p1}, Landroid/view/View;->hasFocus()Z
|
|
|
|
.line 9
|
|
.line 10
|
|
.line 11
|
|
move-result p1
|
|
|
|
.line 12
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 13
|
|
.line 14
|
|
invoke-virtual {p0}, Landroid/view/View;->getVisibility()I
|
|
|
|
.line 15
|
|
.line 16
|
|
.line 17
|
|
move-result p1
|
|
|
|
.line 18
|
|
if-nez p1, :cond_1
|
|
|
|
.line 19
|
|
.line 20
|
|
const/4 p1, 0x1
|
|
|
|
.line 21
|
|
iput-boolean p1, p0, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->k:Z
|
|
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result-object v0
|
|
|
|
.line 27
|
|
sget-object v1, Landroidx/appcompat/widget/SearchView;->D:Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;
|
|
|
|
.line 28
|
|
.line 29
|
|
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
.line 30
|
|
.line 31
|
|
.line 32
|
|
move-result-object v0
|
|
|
|
.line 33
|
|
invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;
|
|
|
|
.line 34
|
|
.line 35
|
|
.line 36
|
|
move-result-object v0
|
|
|
|
.line 37
|
|
iget v0, v0, Landroid/content/res/Configuration;->orientation:I
|
|
|
|
.line 38
|
|
.line 39
|
|
const/4 v1, 0x2
|
|
|
|
.line 40
|
|
if-ne v0, v1, :cond_1
|
|
|
|
.line 41
|
|
.line 42
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
.line 43
|
|
.line 44
|
|
const/16 v1, 0x1d
|
|
|
|
.line 45
|
|
.line 46
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 47
|
|
.line 48
|
|
invoke-static {p0, p1}, Landroidx/appcompat/widget/SearchView$Api29Impl;->b(Landroidx/appcompat/widget/SearchView$SearchAutoComplete;I)V
|
|
|
|
.line 49
|
|
.line 50
|
|
.line 51
|
|
invoke-virtual {p0}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->enoughToFilter()Z
|
|
|
|
.line 52
|
|
.line 53
|
|
.line 54
|
|
move-result p1
|
|
|
|
.line 55
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 56
|
|
.line 57
|
|
invoke-virtual {p0}, Landroid/widget/AutoCompleteTextView;->showDropDown()V
|
|
|
|
.line 58
|
|
.line 59
|
|
.line 60
|
|
return-void
|
|
|
|
.line 61
|
|
:cond_0
|
|
sget-object v0, Landroidx/appcompat/widget/SearchView;->D:Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;
|
|
|
|
.line 62
|
|
.line 63
|
|
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
.line 64
|
|
.line 65
|
|
.line 66
|
|
invoke-static {}, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->a()V
|
|
|
|
.line 67
|
|
.line 68
|
|
.line 69
|
|
iget-object v0, v0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->a:Ljava/lang/reflect/Method;
|
|
|
|
.line 70
|
|
.line 71
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 72
|
|
.line 73
|
|
:try_start_0
|
|
new-array p1, p1, [Ljava/lang/Object;
|
|
|
|
.line 74
|
|
.line 75
|
|
sget-object v1, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
|
|
|
|
.line 76
|
|
.line 77
|
|
const/4 v2, 0x0
|
|
|
|
.line 78
|
|
aput-object v1, p1, v2
|
|
|
|
.line 79
|
|
.line 80
|
|
invoke-virtual {v0, p0, p1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 81
|
|
.line 82
|
|
.line 83
|
|
:catch_0
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final performCompletion()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final replaceText(Ljava/lang/CharSequence;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public setImeVisibility(Z)V
|
|
.locals 3
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
move-result-object v0
|
|
|
|
.line 5
|
|
const-string v1, "input_method"
|
|
|
|
.line 6
|
|
.line 7
|
|
invoke-virtual {v0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 8
|
|
.line 9
|
|
.line 10
|
|
move-result-object v0
|
|
|
|
.line 11
|
|
check-cast v0, Landroid/view/inputmethod/InputMethodManager;
|
|
|
|
.line 12
|
|
.line 13
|
|
iget-object v1, p0, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->l:Ljava/lang/Runnable;
|
|
|
|
.line 14
|
|
.line 15
|
|
const/4 v2, 0x0
|
|
|
|
.line 16
|
|
if-nez p1, :cond_0
|
|
|
|
.line 17
|
|
.line 18
|
|
iput-boolean v2, p0, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->k:Z
|
|
|
|
.line 19
|
|
.line 20
|
|
invoke-virtual {p0, v1}, Landroid/view/View;->removeCallbacks(Ljava/lang/Runnable;)Z
|
|
|
|
.line 21
|
|
.line 22
|
|
.line 23
|
|
invoke-virtual {p0}, Landroid/view/View;->getWindowToken()Landroid/os/IBinder;
|
|
|
|
.line 24
|
|
.line 25
|
|
.line 26
|
|
move-result-object p1
|
|
|
|
.line 27
|
|
invoke-virtual {v0, p1, v2}, Landroid/view/inputmethod/InputMethodManager;->hideSoftInputFromWindow(Landroid/os/IBinder;I)Z
|
|
|
|
.line 28
|
|
.line 29
|
|
.line 30
|
|
return-void
|
|
|
|
.line 31
|
|
:cond_0
|
|
invoke-virtual {v0, p0}, Landroid/view/inputmethod/InputMethodManager;->isActive(Landroid/view/View;)Z
|
|
|
|
.line 32
|
|
.line 33
|
|
.line 34
|
|
move-result p1
|
|
|
|
.line 35
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 36
|
|
.line 37
|
|
iput-boolean v2, p0, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->k:Z
|
|
|
|
.line 38
|
|
.line 39
|
|
invoke-virtual {p0, v1}, Landroid/view/View;->removeCallbacks(Ljava/lang/Runnable;)Z
|
|
|
|
.line 40
|
|
.line 41
|
|
.line 42
|
|
invoke-virtual {v0, p0, v2}, Landroid/view/inputmethod/InputMethodManager;->showSoftInput(Landroid/view/View;I)Z
|
|
|
|
.line 43
|
|
.line 44
|
|
.line 45
|
|
return-void
|
|
|
|
.line 46
|
|
:cond_1
|
|
const/4 p1, 0x1
|
|
|
|
.line 47
|
|
iput-boolean p1, p0, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->k:Z
|
|
|
|
.line 48
|
|
.line 49
|
|
return-void
|
|
.end method
|
|
|
|
.method public setSearchView(Landroidx/appcompat/widget/SearchView;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->j:Landroidx/appcompat/widget/SearchView;
|
|
|
|
.line 2
|
|
.line 3
|
|
return-void
|
|
.end method
|
|
|
|
.method public setThreshold(I)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-super {p0, p1}, Landroid/widget/AutoCompleteTextView;->setThreshold(I)V
|
|
|
|
.line 2
|
|
.line 3
|
|
.line 4
|
|
iput p1, p0, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->i:I
|
|
|
|
.line 5
|
|
.line 6
|
|
return-void
|
|
.end method
|