167 lines
4.1 KiB
Smali
167 lines
4.1 KiB
Smali
.class public final Lcom/discord/widgets/user/search/WidgetGlobalSearch$onViewBound$5;
|
|
.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$5;->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;->Q(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$5;->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;)Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Lcom/discord/utilities/view/extensions/ViewExtensions;->getTextOrEmpty(Lcom/google/android/material/textfield/TextInputLayout;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const/4 v2, 0x3
|
|
|
|
new-array v3, v2, [C
|
|
|
|
fill-array-data v3, :array_0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
invoke-virtual {v1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v5
|
|
|
|
const/4 v6, 0x0
|
|
|
|
:goto_0
|
|
if-ge v6, v5, :cond_4
|
|
|
|
invoke-virtual {v1, v6}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v7
|
|
|
|
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-virtual {v1}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
invoke-virtual {v1, v6, v2}, Ljava/lang/String;->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, ""
|
|
|
|
: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$5;->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, v4, v1, v4}, Lcom/discord/widgets/user/search/WidgetGlobalSearch;->onSelected$default(Lcom/discord/widgets/user/search/WidgetGlobalSearch;Lcom/discord/widgets/tabs/NavigationTab;Lcom/discord/stores/StoreNavigation$PanelAction;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
|
|
:cond_5
|
|
const-string p1, "$this$trimStart"
|
|
|
|
invoke-static {p1}, Lj0/n/c/h;->c(Ljava/lang/String;)V
|
|
|
|
throw v4
|
|
|
|
nop
|
|
|
|
:array_0
|
|
.array-data 2
|
|
0x40s
|
|
0x23s
|
|
0x2as
|
|
.end array-data
|
|
.end method
|