230 lines
6.4 KiB
Smali
230 lines
6.4 KiB
Smali
.class Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;
|
|
.super Ljava/lang/Object;
|
|
.source "SearchView.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/appcompat/widget/SearchView;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0xa
|
|
name = "PreQAutoCompleteTextViewReflector"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private mDoAfterTextChanged:Ljava/lang/reflect/Method;
|
|
|
|
.field private mDoBeforeTextChanged:Ljava/lang/reflect/Method;
|
|
|
|
.field private mEnsureImeVisible:Ljava/lang/reflect/Method;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>()V
|
|
.locals 6
|
|
|
|
.line 2044
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 2037
|
|
iput-object v0, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mDoBeforeTextChanged:Ljava/lang/reflect/Method;
|
|
|
|
.line 2038
|
|
iput-object v0, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mDoAfterTextChanged:Ljava/lang/reflect/Method;
|
|
|
|
.line 2039
|
|
iput-object v0, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mEnsureImeVisible:Ljava/lang/reflect/Method;
|
|
|
|
.line 2045
|
|
invoke-static {}, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->preApi29Check()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 2047
|
|
:try_start_0
|
|
const-class v2, Landroid/widget/AutoCompleteTextView;
|
|
|
|
const-string v3, "doBeforeTextChanged"
|
|
|
|
new-array v4, v0, [Ljava/lang/Class;
|
|
|
|
.line 2048
|
|
invoke-virtual {v2, v3, v4}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mDoBeforeTextChanged:Ljava/lang/reflect/Method;
|
|
|
|
.line 2049
|
|
invoke-virtual {v2, v1}, Ljava/lang/reflect/Method;->setAccessible(Z)V
|
|
:try_end_0
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.line 2054
|
|
:catch_0
|
|
:try_start_1
|
|
const-class v2, Landroid/widget/AutoCompleteTextView;
|
|
|
|
const-string v3, "doAfterTextChanged"
|
|
|
|
new-array v4, v0, [Ljava/lang/Class;
|
|
|
|
.line 2055
|
|
invoke-virtual {v2, v3, v4}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mDoAfterTextChanged:Ljava/lang/reflect/Method;
|
|
|
|
.line 2056
|
|
invoke-virtual {v2, v1}, Ljava/lang/reflect/Method;->setAccessible(Z)V
|
|
:try_end_1
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
.line 2061
|
|
:catch_1
|
|
:try_start_2
|
|
const-class v2, Landroid/widget/AutoCompleteTextView;
|
|
|
|
const-string v3, "ensureImeVisible"
|
|
|
|
new-array v4, v1, [Ljava/lang/Class;
|
|
|
|
sget-object v5, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;
|
|
|
|
aput-object v5, v4, v0
|
|
|
|
.line 2062
|
|
invoke-virtual {v2, v3, v4}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mEnsureImeVisible:Ljava/lang/reflect/Method;
|
|
|
|
.line 2063
|
|
invoke-virtual {v0, v1}, Ljava/lang/reflect/Method;->setAccessible(Z)V
|
|
:try_end_2
|
|
.catch Ljava/lang/NoSuchMethodException; {:try_start_2 .. :try_end_2} :catch_2
|
|
|
|
:catch_2
|
|
return-void
|
|
.end method
|
|
|
|
.method private static preApi29Check()V
|
|
.locals 2
|
|
|
|
.line 2100
|
|
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
|
|
|
|
const/16 v1, 0x1d
|
|
|
|
if-ge v0, v1, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2101
|
|
:cond_0
|
|
new-instance v0, Ljava/lang/UnsupportedClassVersionError;
|
|
|
|
const-string v1, "This function can only be used for API Level < 29."
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/UnsupportedClassVersionError;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method doAfterTextChanged(Landroid/widget/AutoCompleteTextView;)V
|
|
.locals 2
|
|
|
|
.line 2080
|
|
invoke-static {}, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->preApi29Check()V
|
|
|
|
.line 2081
|
|
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mDoAfterTextChanged:Ljava/lang/reflect/Method;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:try_start_0
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
.line 2083
|
|
invoke-virtual {v0, p1, v1}, 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
|
|
|
|
:catch_0
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method doBeforeTextChanged(Landroid/widget/AutoCompleteTextView;)V
|
|
.locals 2
|
|
|
|
.line 2070
|
|
invoke-static {}, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->preApi29Check()V
|
|
|
|
.line 2071
|
|
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mDoBeforeTextChanged:Ljava/lang/reflect/Method;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:try_start_0
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
.line 2073
|
|
invoke-virtual {v0, p1, v1}, 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
|
|
|
|
:catch_0
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method ensureImeVisible(Landroid/widget/AutoCompleteTextView;)V
|
|
.locals 4
|
|
|
|
.line 2090
|
|
invoke-static {}, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->preApi29Check()V
|
|
|
|
.line 2091
|
|
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mEnsureImeVisible:Ljava/lang/reflect/Method;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:try_start_0
|
|
new-array v2, v1, [Ljava/lang/Object;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
.line 2093
|
|
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object v1
|
|
|
|
aput-object v1, v2, v3
|
|
|
|
invoke-virtual {v0, p1, v2}, 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
|
|
|
|
:catch_0
|
|
:cond_0
|
|
return-void
|
|
.end method
|