apkfuckery/com.discord/smali/androidx/appcompat/widget/SearchView$PreQAutoComplete...

209 lines
6.2 KiB
Smali
Raw Normal View History

2020-09-16 23:45:23 +00:00
.class public Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;
2020-05-17 12:40:10 +00:00
.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 = 0x9
2020-09-16 23:45:23 +00:00
name = "PreQAutoCompleteTextViewReflector"
2020-05-17 12:40:10 +00:00
.end annotation
# instance fields
2020-09-16 23:45:23 +00:00
.field public mDoAfterTextChanged:Ljava/lang/reflect/Method;
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
.field public mDoBeforeTextChanged:Ljava/lang/reflect/Method;
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
.field public mEnsureImeVisible:Ljava/lang/reflect/Method;
2020-05-17 12:40:10 +00:00
# direct methods
.method public constructor <init>()V
.locals 6
2020-09-16 23:45:23 +00:00
.annotation build Landroid/annotation/SuppressLint;
value = {
"DiscouragedPrivateApi",
"SoonBlockedPrivateApi"
}
.end annotation
2020-05-17 12:40:10 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
2020-09-16 23:45:23 +00:00
iput-object v0, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mDoBeforeTextChanged:Ljava/lang/reflect/Method;
iput-object v0, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mDoAfterTextChanged:Ljava/lang/reflect/Method;
iput-object v0, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mEnsureImeVisible:Ljava/lang/reflect/Method;
invoke-static {}, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->preApi29Check()V
const/4 v0, 0x0
2020-05-17 12:40:10 +00:00
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
2020-09-16 23:45:23 +00:00
iput-object v2, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mDoBeforeTextChanged:Ljava/lang/reflect/Method;
2020-05-17 12:40:10 +00:00
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
2020-09-16 23:45:23 +00:00
iput-object v2, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mDoAfterTextChanged:Ljava/lang/reflect/Method;
2020-05-17 12:40:10 +00:00
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
2020-09-16 23:45:23 +00:00
iput-object v0, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mEnsureImeVisible:Ljava/lang/reflect/Method;
2020-05-17 12:40:10 +00:00
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
2020-09-16 23:45:23 +00:00
.method public static preApi29Check()V
.locals 2
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1d
if-ge v0, v1, :cond_0
return-void
: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
2020-05-17 12:40:10 +00:00
# virtual methods
.method public doAfterTextChanged(Landroid/widget/AutoCompleteTextView;)V
.locals 2
2020-09-16 23:45:23 +00:00
invoke-static {}, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->preApi29Check()V
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mDoAfterTextChanged:Ljava/lang/reflect/Method;
2020-05-17 12:40:10 +00:00
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 public doBeforeTextChanged(Landroid/widget/AutoCompleteTextView;)V
.locals 2
2020-09-16 23:45:23 +00:00
invoke-static {}, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->preApi29Check()V
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mDoBeforeTextChanged:Ljava/lang/reflect/Method;
2020-05-17 12:40:10 +00:00
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
2020-09-16 23:45:23 +00:00
.method public ensureImeVisible(Landroid/widget/AutoCompleteTextView;)V
.locals 4
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
invoke-static {}, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->preApi29Check()V
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->mEnsureImeVisible:Ljava/lang/reflect/Method;
2020-05-17 12:40:10 +00:00
if-eqz v0, :cond_0
const/4 v1, 0x1
:try_start_0
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
2020-09-16 23:45:23 +00:00
sget-object v3, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
aput-object v3, v1, v2
2020-05-17 12:40:10 +00:00
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