175 lines
5.1 KiB
Smali
175 lines
5.1 KiB
Smali
.class Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector;
|
|
.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 = 0x8
|
|
name = "AutoCompleteTextViewReflector"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private doAfterTextChanged:Ljava/lang/reflect/Method;
|
|
|
|
.field private doBeforeTextChanged:Ljava/lang/reflect/Method;
|
|
|
|
.field private ensureImeVisible:Ljava/lang/reflect/Method;
|
|
|
|
.field private showSoftInputUnchecked:Ljava/lang/reflect/Method;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>()V
|
|
.locals 6
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:try_start_0
|
|
const-class v2, Landroid/widget/AutoCompleteTextView;
|
|
|
|
const-string v3, "doBeforeTextChanged"
|
|
|
|
new-array v4, v0, [Ljava/lang/Class;
|
|
|
|
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$AutoCompleteTextViewReflector;->doBeforeTextChanged:Ljava/lang/reflect/Method;
|
|
|
|
iget-object v2, p0, Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector;->doBeforeTextChanged:Ljava/lang/reflect/Method;
|
|
|
|
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
|
|
|
|
:catch_0
|
|
:try_start_1
|
|
const-class v2, Landroid/widget/AutoCompleteTextView;
|
|
|
|
const-string v3, "doAfterTextChanged"
|
|
|
|
new-array v4, v0, [Ljava/lang/Class;
|
|
|
|
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$AutoCompleteTextViewReflector;->doAfterTextChanged:Ljava/lang/reflect/Method;
|
|
|
|
iget-object v2, p0, Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector;->doAfterTextChanged:Ljava/lang/reflect/Method;
|
|
|
|
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
|
|
|
|
: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
|
|
|
|
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$AutoCompleteTextViewReflector;->ensureImeVisible:Ljava/lang/reflect/Method;
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector;->ensureImeVisible:Ljava/lang/reflect/Method;
|
|
|
|
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
|
|
|
|
|
|
# virtual methods
|
|
.method doAfterTextChanged(Landroid/widget/AutoCompleteTextView;)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector;->doAfterTextChanged:Ljava/lang/reflect/Method;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:try_start_0
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
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
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector;->doBeforeTextChanged:Ljava/lang/reflect/Method;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:try_start_0
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
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;Z)V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$AutoCompleteTextViewReflector;->ensureImeVisible:Ljava/lang/reflect/Method;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
:try_start_0
|
|
new-array v1, v1, [Ljava/lang/Object;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-static {p2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object p2
|
|
|
|
aput-object p2, v1, v2
|
|
|
|
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
|