179 lines
4.3 KiB
Smali
179 lines
4.3 KiB
Smali
|
.class final Lcom/discord/widgets/user/search/WidgetGlobalSearch$onViewBound$6;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "WidgetGlobalSearch.kt"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Landroid/view/View$OnClickListener;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lcom/discord/widgets/user/search/WidgetGlobalSearch;->onViewBound(Landroid/view/View;)V
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x18
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field final synthetic this$0:Lcom/discord/widgets/user/search/WidgetGlobalSearch;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Lcom/discord/widgets/user/search/WidgetGlobalSearch;)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-object p1, p0, Lcom/discord/widgets/user/search/WidgetGlobalSearch$onViewBound$6;->this$0:Lcom/discord/widgets/user/search/WidgetGlobalSearch;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public final onClick(Landroid/view/View;)V
|
||
|
.locals 10
|
||
|
|
||
|
sget-object v0, Lcom/discord/widgets/friends/WidgetFriendsAdd;->Companion:Lcom/discord/widgets/friends/WidgetFriendsAdd$Companion;
|
||
|
|
||
|
const-string v1, "it"
|
||
|
|
||
|
invoke-static {p1, v1}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const-string v1, "it.context"
|
||
|
|
||
|
invoke-static {p1, v1}, Lkotlin/jvm/internal/k;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
iget-object v1, p0, Lcom/discord/widgets/user/search/WidgetGlobalSearch$onViewBound$6;->this$0:Lcom/discord/widgets/user/search/WidgetGlobalSearch;
|
||
|
|
||
|
invoke-static {v1}, Lcom/discord/widgets/user/search/WidgetGlobalSearch;->access$getSearchInput$p(Lcom/discord/widgets/user/search/WidgetGlobalSearch;)Landroid/widget/EditText;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1}, Landroid/widget/EditText;->getText()Landroid/text/Editable;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
const/4 v2, 0x3
|
||
|
|
||
|
new-array v3, v2, [C
|
||
|
|
||
|
fill-array-data v3, :array_0
|
||
|
|
||
|
const-string v4, "$this$trimStart"
|
||
|
|
||
|
invoke-static {v1, v4}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const-string v4, "chars"
|
||
|
|
||
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
check-cast v1, Ljava/lang/CharSequence;
|
||
|
|
||
|
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
const/4 v6, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
if-ge v6, v4, :cond_4
|
||
|
|
||
|
invoke-interface {v1, v6}, Ljava/lang/CharSequence;->charAt(I)C
|
||
|
|
||
|
move-result v7
|
||
|
|
||
|
const-string v8, "$this$contains"
|
||
|
|
||
|
invoke-static {v3, v8}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const-string v8, "$this$indexOf"
|
||
|
|
||
|
invoke-static {v3, v8}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const/4 v8, 0x0
|
||
|
|
||
|
:goto_1
|
||
|
if-ge v8, v2, :cond_1
|
||
|
|
||
|
aget-char v9, v3, v8
|
||
|
|
||
|
if-ne v7, v9, :cond_0
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_0
|
||
|
add-int/lit8 v8, v8, 0x1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
const/4 v8, -0x1
|
||
|
|
||
|
:goto_2
|
||
|
if-ltz v8, :cond_2
|
||
|
|
||
|
const/4 v7, 0x1
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_2
|
||
|
const/4 v7, 0x0
|
||
|
|
||
|
:goto_3
|
||
|
if-nez v7, :cond_3
|
||
|
|
||
|
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
invoke-interface {v1, v6, v2}, Ljava/lang/CharSequence;->subSequence(II)Ljava/lang/CharSequence;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
:cond_3
|
||
|
add-int/lit8 v6, v6, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_4
|
||
|
const-string v1, ""
|
||
|
|
||
|
check-cast v1, Ljava/lang/CharSequence;
|
||
|
|
||
|
:goto_4
|
||
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v0, p1, v1}, Lcom/discord/widgets/friends/WidgetFriendsAdd$Companion;->show(Landroid/content/Context;Ljava/lang/String;)V
|
||
|
|
||
|
iget-object p1, p0, Lcom/discord/widgets/user/search/WidgetGlobalSearch$onViewBound$6;->this$0:Lcom/discord/widgets/user/search/WidgetGlobalSearch;
|
||
|
|
||
|
invoke-virtual {p1}, Lcom/discord/widgets/user/search/WidgetGlobalSearch;->dismiss()V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:array_0
|
||
|
.array-data 2
|
||
|
0x40s
|
||
|
0x23s
|
||
|
0x2as
|
||
|
.end array-data
|
||
|
.end method
|