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 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_f
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_1e
.catch Ljava/lang/NoSuchMethodException; {:try_start_f .. :try_end_1e} :catch_1e
.line 2054
:catch_1e
:try_start_1e
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_2d
.catch Ljava/lang/NoSuchMethodException; {:try_start_1e .. :try_end_2d} :catch_2d
.line 2061
: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 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_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 2100
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1d
if-ge v0, v1, :cond_7
return-void
.line 2101
: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 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_d
const/4 v1, 0x0
:try_start_8
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_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 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_d
const/4 v1, 0x0
:try_start_8
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_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 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_14
const/4 v1, 0x1
:try_start_8
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_14
.catch Ljava/lang/Exception; {:try_start_8 .. :try_end_14} :catch_14
:catch_14
:cond_14
return-void
.end method