SearchView$PreQAutoCompleteTextViewReflector.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
.registers 7
.line 2049
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
.line 2042
iput-object v0, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mDoBeforeTextChanged:Ljava/lang/reflect/Method;
.line 2043
iput-object v0, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mDoAfterTextChanged:Ljava/lang/reflect/Method;
.line 2044
iput-object v0, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mEnsureImeVisible:Ljava/lang/reflect/Method;
.line 2050
invoke-static {}, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->preApi29Check()V
const/4 v0, 0x0
const/4 v1, 0x1
.line 2052
:try_start_f
const-class v2, Landroid/widget/AutoCompleteTextView;
const-string v3, "doBeforeTextChanged"
new-array v4, v0, [Ljava/lang/Class;
.line 2053
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 2054
invoke-virtual {v2, v1}, Ljava/lang/reflect/Method;->setAccessible(Z)V
:try_end_1e
.catch Ljava/lang/NoSuchMethodException; {:try_start_f .. :try_end_1e} :catch_1e
.line 2059
:catch_1e
:try_start_1e
const-class v2, Landroid/widget/AutoCompleteTextView;
const-string v3, "doAfterTextChanged"
new-array v4, v0, [Ljava/lang/Class;
.line 2060
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 2061
invoke-virtual {v2, v1}, Ljava/lang/reflect/Method;->setAccessible(Z)V
:try_end_2d
.catch Ljava/lang/NoSuchMethodException; {:try_start_1e .. :try_end_2d} :catch_2d
.line 2066
:catch_2d
:try_start_2d
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 2067
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 2068
invoke-virtual {v0, v1}, Ljava/lang/reflect/Method;->setAccessible(Z)V
:try_end_40
.catch Ljava/lang/NoSuchMethodException; {:try_start_2d .. :try_end_40} :catch_40
:catch_40
return-void
.end method
.method private static preApi29Check()V
.registers 2
.line 2105
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1d
if-ge v0, v1, :cond_7
return-void
.line 2106
:cond_7
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
.registers 4
.line 2085
invoke-static {}, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->preApi29Check()V
.line 2086
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mDoAfterTextChanged:Ljava/lang/reflect/Method;
if-eqz v0, :cond_d
const/4 v1, 0x0
:try_start_8
new-array v1, v1, [Ljava/lang/Object;
.line 2088
invoke-virtual {v0, p1, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_d
.catch Ljava/lang/Exception; {:try_start_8 .. :try_end_d} :catch_d
:catch_d
:cond_d
return-void
.end method
.method doBeforeTextChanged(Landroid/widget/AutoCompleteTextView;)V
.registers 4
.line 2075
invoke-static {}, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->preApi29Check()V
.line 2076
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mDoBeforeTextChanged:Ljava/lang/reflect/Method;
if-eqz v0, :cond_d
const/4 v1, 0x0
:try_start_8
new-array v1, v1, [Ljava/lang/Object;
.line 2078
invoke-virtual {v0, p1, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_d
.catch Ljava/lang/Exception; {:try_start_8 .. :try_end_d} :catch_d
:catch_d
:cond_d
return-void
.end method
.method ensureImeVisible(Landroid/widget/AutoCompleteTextView;)V
.registers 6
.line 2095
invoke-static {}, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->preApi29Check()V
.line 2096
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mEnsureImeVisible:Ljava/lang/reflect/Method;
if-eqz v0, :cond_14
const/4 v1, 0x1
:try_start_8
new-array v2, v1, [Ljava/lang/Object;
const/4 v3, 0x0
.line 2098
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_14
.catch Ljava/lang/Exception; {:try_start_8 .. :try_end_14} :catch_14
:catch_14
:cond_14
return-void
.end method