171 lines
4.1 KiB
Smali
171 lines
4.1 KiB
Smali
.class public 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 = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic this$0:Lcom/discord/widgets/user/search/WidgetGlobalSearch;
|
|
|
|
|
|
# direct methods
|
|
.method public 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"
|
|
|
|
const-string v2, "it.context"
|
|
|
|
invoke-static {p1, v1, v2}, Lf/e/b/a/a;->a(Landroid/view/View;Ljava/lang/String;Ljava/lang/String;)Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
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 v2, v2, [C
|
|
|
|
fill-array-data v2, :array_0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
|
|
|
|
move-result v4
|
|
|
|
const/4 v5, 0x0
|
|
|
|
:goto_0
|
|
if-ge v5, v4, :cond_4
|
|
|
|
invoke-interface {v1, v5}, Ljava/lang/CharSequence;->charAt(I)C
|
|
|
|
move-result v6
|
|
|
|
array-length v7, v2
|
|
|
|
const/4 v8, 0x0
|
|
|
|
:goto_1
|
|
if-ge v8, v7, :cond_1
|
|
|
|
aget-char v9, v2, v8
|
|
|
|
if-ne v6, 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 v6, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_2
|
|
const/4 v6, 0x0
|
|
|
|
:goto_3
|
|
if-nez v6, :cond_3
|
|
|
|
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
|
|
|
|
move-result v2
|
|
|
|
invoke-interface {v1, v5, v2}, Ljava/lang/CharSequence;->subSequence(II)Ljava/lang/CharSequence;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_4
|
|
|
|
:cond_3
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
const-string v1, ""
|
|
|
|
:goto_4
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "QuickSwitcher"
|
|
|
|
invoke-virtual {v0, p1, v1, v2}, Lcom/discord/widgets/friends/WidgetFriendsAdd$Companion;->show(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/user/search/WidgetGlobalSearch$onViewBound$6;->this$0:Lcom/discord/widgets/user/search/WidgetGlobalSearch;
|
|
|
|
sget-object v0, Lcom/discord/widgets/tabs/NavigationTab;->FRIENDS:Lcom/discord/widgets/tabs/NavigationTab;
|
|
|
|
const/4 v1, 0x2
|
|
|
|
invoke-static {p1, v0, v3, v1, v3}, Lcom/discord/widgets/user/search/WidgetGlobalSearch;->onSelected$default(Lcom/discord/widgets/user/search/WidgetGlobalSearch;Lcom/discord/widgets/tabs/NavigationTab;Lcom/discord/stores/StoreNavigation$DrawerAction;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
|
|
:cond_5
|
|
const-string p1, "$this$trimStart"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v3
|
|
|
|
:array_0
|
|
.array-data 2
|
|
0x40s
|
|
0x23s
|
|
0x2as
|
|
.end array-data
|
|
.end method
|