.class public 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 = 0x9 name = "PreQAutoCompleteTextViewReflector" .end annotation # instance fields .field public mDoAfterTextChanged:Ljava/lang/reflect/Method; .field public mDoBeforeTextChanged:Ljava/lang/reflect/Method; .field public mEnsureImeVisible:Ljava/lang/reflect/Method; # direct methods .method public constructor ()V .locals 6 .annotation build Landroid/annotation/SuppressLint; value = { "DiscouragedPrivateApi", "SoonBlockedPrivateApi" } .end annotation invoke-direct {p0}, Ljava/lang/Object;->()V const/4 v0, 0x0 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 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$PreQAutoCompleteTextViewReflector;->mDoBeforeTextChanged: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$PreQAutoCompleteTextViewReflector;->mDoAfterTextChanged: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$PreQAutoCompleteTextViewReflector;->mEnsureImeVisible: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 .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;->(Ljava/lang/String;)V throw v0 .end method # virtual methods .method public doAfterTextChanged(Landroid/widget/AutoCompleteTextView;)V .locals 2 invoke-static {}, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->preApi29Check()V 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; 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 invoke-static {}, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->preApi29Check()V 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; 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 ensureImeVisible(Landroid/widget/AutoCompleteTextView;)V .locals 4 invoke-static {}, Landroidx/appcompat/widget/SearchView$PreQAutoCompleteTextViewReflector;->preApi29Check()V 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 v1, v1, [Ljava/lang/Object; const/4 v2, 0x0 sget-object v3, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean; aput-object v3, 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