2019-12-06 03:29:40 +00:00
|
|
|
.class public final Lcom/discord/widgets/user/search/WidgetGlobalSearch$onViewBound$6;
|
2019-07-24 11:27:29 +00:00
|
|
|
.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;
|
2019-12-06 03:29:40 +00:00
|
|
|
accessFlags = 0x19
|
2019-07-24 11:27:29 +00:00
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final synthetic this$0:Lcom/discord/widgets/user/search/WidgetGlobalSearch;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public constructor <init>(Lcom/discord/widgets/user/search/WidgetGlobalSearch;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.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
|
2020-03-14 04:13:36 +00:00
|
|
|
.locals 10
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/friends/WidgetFriendsAdd;->Companion:Lcom/discord/widgets/friends/WidgetFriendsAdd$Companion;
|
|
|
|
|
|
|
|
const-string v1, "it"
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-string v2, "it.context"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
invoke-static {p1, v1, v2}, Lf/e/b/a/a;->a(Landroid/view/View;Ljava/lang/String;Ljava/lang/String;)Landroid/content/Context;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
new-array v2, v2, [C
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-09 23:16:36 +00:00
|
|
|
fill-array-data v2, :array_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
const/4 v3, 0x0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz v1, :cond_5
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
|
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
move-result v4
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
const/4 v5, 0x0
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:goto_0
|
2020-03-14 04:13:36 +00:00
|
|
|
if-ge v5, v4, :cond_4
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
invoke-interface {v1, v5}, Ljava/lang/CharSequence;->charAt(I)C
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
move-result v6
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
array-length v7, v2
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
const/4 v8, 0x0
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:goto_1
|
2020-03-14 04:13:36 +00:00
|
|
|
if-ge v8, v7, :cond_1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
aget-char v9, v2, v8
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
if-ne v6, v9, :cond_0
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_0
|
2020-03-14 04:13:36 +00:00
|
|
|
add-int/lit8 v8, v8, 0x1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_1
|
2020-03-14 04:13:36 +00:00
|
|
|
const/4 v8, -0x1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:goto_2
|
2020-03-14 04:13:36 +00:00
|
|
|
if-ltz v8, :cond_2
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
const/4 v6, 0x1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_2
|
2020-03-14 04:13:36 +00:00
|
|
|
const/4 v6, 0x0
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:goto_3
|
2020-03-14 04:13:36 +00:00
|
|
|
if-nez v6, :cond_3
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
invoke-interface {v1, v5, v2}, Ljava/lang/CharSequence;->subSequence(II)Ljava/lang/CharSequence;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_3
|
2020-03-14 04:13:36 +00:00
|
|
|
add-int/lit8 v5, v5, 0x1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
const-string v1, ""
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-01-31 00:34:35 +00:00
|
|
|
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
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/user/search/WidgetGlobalSearch$onViewBound$6;->this$0:Lcom/discord/widgets/user/search/WidgetGlobalSearch;
|
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
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
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_5
|
|
|
|
const-string p1, "$this$trimStart"
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
throw v3
|
2019-10-09 23:16:36 +00:00
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
:array_0
|
|
|
|
.array-data 2
|
|
|
|
0x40s
|
|
|
|
0x23s
|
|
|
|
0x2as
|
|
|
|
.end array-data
|
|
|
|
.end method
|