apkfuckery/com.discord/smali/androidx/appcompat/widget/SearchView$6.smali
2020-05-17 12:40:10 +00:00

130 lines
3.5 KiB
Smali

.class public Landroidx/appcompat/widget/SearchView$6;
.super Ljava/lang/Object;
.source "SearchView.java"
# interfaces
.implements Landroid/view/View$OnKeyListener;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/appcompat/widget/SearchView;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = null
.end annotation
# instance fields
.field public final synthetic this$0:Landroidx/appcompat/widget/SearchView;
# direct methods
.method public constructor <init>(Landroidx/appcompat/widget/SearchView;)V
.locals 0
iput-object p1, p0, Landroidx/appcompat/widget/SearchView$6;->this$0:Landroidx/appcompat/widget/SearchView;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onKey(Landroid/view/View;ILandroid/view/KeyEvent;)Z
.locals 3
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$6;->this$0:Landroidx/appcompat/widget/SearchView;
iget-object v1, v0, Landroidx/appcompat/widget/SearchView;->mSearchable:Landroid/app/SearchableInfo;
const/4 v2, 0x0
if-nez v1, :cond_0
return v2
:cond_0
iget-object v0, v0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->isPopupShowing()Z
move-result v0
if-eqz v0, :cond_1
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$6;->this$0:Landroidx/appcompat/widget/SearchView;
iget-object v0, v0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
invoke-virtual {v0}, Landroid/widget/AutoCompleteTextView;->getListSelection()I
move-result v0
const/4 v1, -0x1
if-eq v0, v1, :cond_1
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$6;->this$0:Landroidx/appcompat/widget/SearchView;
invoke-virtual {v0, p1, p2, p3}, Landroidx/appcompat/widget/SearchView;->onSuggestionsKey(Landroid/view/View;ILandroid/view/KeyEvent;)Z
move-result p1
return p1
:cond_1
iget-object v0, p0, Landroidx/appcompat/widget/SearchView$6;->this$0:Landroidx/appcompat/widget/SearchView;
iget-object v0, v0, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
invoke-virtual {v0}, Landroidx/appcompat/widget/SearchView$SearchAutoComplete;->isEmpty()Z
move-result v0
if-nez v0, :cond_2
invoke-virtual {p3}, Landroid/view/KeyEvent;->hasNoModifiers()Z
move-result v0
if-eqz v0, :cond_2
invoke-virtual {p3}, Landroid/view/KeyEvent;->getAction()I
move-result p3
const/4 v0, 0x1
if-ne p3, v0, :cond_2
const/16 p3, 0x42
if-ne p2, p3, :cond_2
invoke-virtual {p1}, Landroid/view/View;->cancelLongPress()V
iget-object p1, p0, Landroidx/appcompat/widget/SearchView$6;->this$0:Landroidx/appcompat/widget/SearchView;
const/4 p2, 0x0
iget-object p3, p1, Landroidx/appcompat/widget/SearchView;->mSearchSrcTextView:Landroidx/appcompat/widget/SearchView$SearchAutoComplete;
invoke-virtual {p3}, Landroid/widget/AutoCompleteTextView;->getText()Landroid/text/Editable;
move-result-object p3
invoke-virtual {p3}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object p3
invoke-virtual {p1, v2, p2, p3}, Landroidx/appcompat/widget/SearchView;->launchQuerySearch(ILjava/lang/String;Ljava/lang/String;)V
return v0
:cond_2
return v2
.end method