2020-11-13 01:15:36 +00:00
|
|
|
.class public final Lf/a/n/a0;
|
|
|
|
.super Lf/a/n/j;
|
2020-11-12 02:11:44 +00:00
|
|
|
.source "OverlayVoiceSelectorBubbleDialog.kt"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lcom/discord/app/AppComponent;
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field public static final synthetic B:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field public A:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field public final u:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final v:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final w:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final x:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field public final y:Lcom/discord/widgets/user/search/WidgetGlobalSearchAdapter;
|
|
|
|
|
|
|
|
.field public final z:Lrx/subjects/BehaviorSubject;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lrx/subjects/BehaviorSubject<",
|
|
|
|
"Ljava/lang/String;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public static constructor <clinit>()V
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
const/4 v0, 0x4
|
|
|
|
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
const-class v1, Lf/a/n/a0;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const-string v2, "closeBtn"
|
|
|
|
|
|
|
|
const-string v3, "getCloseBtn()Landroid/view/View;"
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Ly/n/c/s;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
aput-object v1, v0, v4
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
const-class v1, Lf/a/n/a0;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const-string v2, "filterEt"
|
|
|
|
|
|
|
|
const-string v3, "getFilterEt()Lcom/google/android/material/textfield/TextInputLayout;"
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Ly/n/c/s;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
const-class v1, Lf/a/n/a0;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const-string v2, "emptyResults"
|
|
|
|
|
|
|
|
const-string v3, "getEmptyResults()Landroid/view/View;"
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Ly/n/c/s;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
const-class v1, Lf/a/n/a0;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const-string v2, "resultsRv"
|
|
|
|
|
|
|
|
const-string v3, "getResultsRv()Landroidx/recyclerview/widget/RecyclerView;"
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-static {v1, v2, v3, v4}, Lf/e/c/a/a;->L(Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;I)Ly/n/c/s;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const/4 v2, 0x3
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
sput-object v0, Lf/a/n/a0;->B:[Lkotlin/reflect/KProperty;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>(Landroid/content/Context;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const-string v0, "context"
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-static {p1, v0}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-direct {p0, p1}, Lf/a/n/j;-><init>(Landroid/content/Context;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/overlay/views/OverlayBubbleWrap;->getWindowLayoutParams()Landroid/view/WindowManager$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/overlay/views/OverlayBubbleWrap;->getWindowLayoutParams()Landroid/view/WindowManager$LayoutParams;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget v0, v0, Landroid/view/WindowManager$LayoutParams;->flags:I
|
|
|
|
|
|
|
|
and-int/lit8 v0, v0, -0x9
|
|
|
|
|
|
|
|
iput v0, p1, Landroid/view/WindowManager$LayoutParams;->flags:I
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
const v0, 0x7f0d00bb
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-static {p1, v0, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
const p1, 0x7f0a0297
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-static {p0, p1}, Ly/i/s;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
iput-object p1, p0, Lf/a/n/a0;->u:Lkotlin/properties/ReadOnlyProperty;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
const p1, 0x7f0a0728
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-static {p0, p1}, Ly/i/s;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
iput-object p1, p0, Lf/a/n/a0;->v:Lkotlin/properties/ReadOnlyProperty;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
const p1, 0x7f0a039f
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-static {p0, p1}, Ly/i/s;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
iput-object p1, p0, Lf/a/n/a0;->w:Lkotlin/properties/ReadOnlyProperty;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
const p1, 0x7f0a0811
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-static {p0, p1}, Ly/i/s;->g(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
iput-object p1, p0, Lf/a/n/a0;->x:Lkotlin/properties/ReadOnlyProperty;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
new-instance p1, Lcom/discord/widgets/user/search/WidgetGlobalSearchAdapter;
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-direct {p0}, Lf/a/n/a0;->getResultsRv()Landroidx/recyclerview/widget/RecyclerView;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-direct {p1, v0}, Lcom/discord/widgets/user/search/WidgetGlobalSearchAdapter;-><init>(Landroidx/recyclerview/widget/RecyclerView;)V
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
iput-object p1, p0, Lf/a/n/a0;->y:Lcom/discord/widgets/user/search/WidgetGlobalSearchAdapter;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const-string p1, ""
|
|
|
|
|
|
|
|
invoke-static {p1}, Lrx/subjects/BehaviorSubject;->h0(Ljava/lang/Object;)Lrx/subjects/BehaviorSubject;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
iput-object p1, p0, Lf/a/n/a0;->z:Lrx/subjects/BehaviorSubject;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getCloseBtn()Landroid/view/View;
|
|
|
|
.locals 3
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
iget-object v0, p0, Lf/a/n/a0;->u:Lkotlin/properties/ReadOnlyProperty;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
sget-object v1, Lf/a/n/a0;->B:[Lkotlin/reflect/KProperty;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getEmptyResults()Landroid/view/View;
|
|
|
|
.locals 3
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
iget-object v0, p0, Lf/a/n/a0;->w:Lkotlin/properties/ReadOnlyProperty;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
sget-object v1, Lf/a/n/a0;->B:[Lkotlin/reflect/KProperty;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/view/View;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getFilterEt()Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
.locals 3
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
iget-object v0, p0, Lf/a/n/a0;->v:Lkotlin/properties/ReadOnlyProperty;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
sget-object v1, Lf/a/n/a0;->B:[Lkotlin/reflect/KProperty;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Lcom/google/android/material/textfield/TextInputLayout;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getResultsRv()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
.locals 3
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
iget-object v0, p0, Lf/a/n/a0;->x:Lkotlin/properties/ReadOnlyProperty;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
sget-object v1, Lf/a/n/a0;->B:[Lkotlin/reflect/KProperty;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x3
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
.method public static final k(Lf/a/n/a0;Lcom/discord/widgets/user/search/WidgetGlobalSearchModel;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
.locals 8
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-direct {p0}, Lf/a/n/a0;->getEmptyResults()Landroid/view/View;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel;->getData()Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/16 v2, 0x8
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/16 v1, 0x8
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-direct {p0}, Lf/a/n/a0;->getResultsRv()Landroidx/recyclerview/widget/RecyclerView;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel;->getData()Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
xor-int/2addr v1, v4
|
|
|
|
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
iget-object v0, p0, Lf/a/n/a0;->y:Lcom/discord/widgets/user/search/WidgetGlobalSearchAdapter;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
new-instance v1, Lf/a/n/y;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-direct {v1, p0, p1}, Lf/a/n/y;-><init>(Lf/a/n/a0;Lcom/discord/widgets/user/search/WidgetGlobalSearchModel;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;->setOnUpdated(Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple$OnUpdated;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel;->getData()Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
new-instance v2, Ljava/util/ArrayList;
|
|
|
|
|
|
|
|
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_1
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-eqz v5, :cond_4
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
move-object v6, v5
|
|
|
|
|
|
|
|
check-cast v6, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ItemDataPayload;
|
|
|
|
|
|
|
|
invoke-interface {v6}, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ItemDataPayload;->getChannel()Lcom/discord/models/domain/ModelChannel;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
if-eqz v6, :cond_3
|
|
|
|
|
|
|
|
invoke-virtual {v6}, Lcom/discord/models/domain/ModelChannel;->getType()I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
const/4 v7, 0x2
|
|
|
|
|
|
|
|
if-ne v6, v7, :cond_3
|
|
|
|
|
|
|
|
const/4 v6, 0x1
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
if-eqz v6, :cond_2
|
|
|
|
|
|
|
|
invoke-virtual {v2, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
invoke-virtual {v0, v2}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;->setData(Ljava/util/List;)V
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
new-instance v1, Lf/a/n/z;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-direct {v1, p0, p1}, Lf/a/n/z;-><init>(Lf/a/n/a0;Lcom/discord/widgets/user/search/WidgetGlobalSearchModel;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/widgets/user/search/WidgetGlobalSearchAdapter;->setOnSelectedListener(Lkotlin/jvm/functions/Function4;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
.method public static final synthetic l(Lf/a/n/a0;)Landroidx/recyclerview/widget/RecyclerView;
|
2020-11-12 02:11:44 +00:00
|
|
|
.locals 0
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-direct {p0}, Lf/a/n/a0;->getResultsRv()Landroidx/recyclerview/widget/RecyclerView;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public getClosingAnimator()Landroid/animation/Animator;
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const v1, 0x7f020016
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Landroid/animation/AnimatorInflater;->loadAnimator(Landroid/content/Context;I)Landroid/animation/Animator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
const v1, 0x7f0a0328
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, v1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/animation/Animator;->setTarget(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
const-string v1, "AnimatorInflater.loadAni\u2026(R.id.dialog_card))\n }"
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-static {v0, v1}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final m()V
|
|
|
|
.locals 11
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-direct {p0}, Lf/a/n/a0;->getCloseBtn()Landroid/view/View;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
new-instance v1, Lf/a/n/a0$a;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-direct {v1, p0}, Lf/a/n/a0$a;-><init>(Lf/a/n/a0;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-direct {p0}, Lf/a/n/a0;->getFilterEt()Lcom/google/android/material/textfield/TextInputLayout;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
iget-object v1, p0, Lf/a/n/a0;->A:Ljava/lang/String;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setText(Lcom/google/android/material/textfield/TextInputLayout;Ljava/lang/CharSequence;)Lkotlin/Unit;
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-direct {p0}, Lf/a/n/a0;->getFilterEt()Lcom/google/android/material/textfield/TextInputLayout;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/google/android/material/textfield/TextInputLayout;->getEditText()Landroid/widget/EditText;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
new-instance v7, Lcom/discord/utilities/view/text/TextWatcher;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
new-instance v4, Lf/a/n/a0$b;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-direct {v4, p0}, Lf/a/n/a0$b;-><init>(Lf/a/n/a0;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const/4 v5, 0x3
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
move-object v1, v7
|
|
|
|
|
|
|
|
invoke-direct/range {v1 .. v6}, Lcom/discord/utilities/view/text/TextWatcher;-><init>(Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function4;Lkotlin/jvm/functions/Function1;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v7}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V
|
|
|
|
|
|
|
|
:cond_0
|
2020-11-13 01:15:36 +00:00
|
|
|
iget-object v0, p0, Lf/a/n/a0;->y:Lcom/discord/widgets/user/search/WidgetGlobalSearchAdapter;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-direct {p0}, Lf/a/n/a0;->getResultsRv()Landroidx/recyclerview/widget/RecyclerView;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;->setRecycler(Landroidx/recyclerview/widget/RecyclerView;)V
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;->Companion:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter$Companion;
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
iget-object v1, p0, Lf/a/n/a0;->y:Lcom/discord/widgets/user/search/WidgetGlobalSearchAdapter;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter$Companion;->configure(Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;)Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;
|
|
|
|
|
|
|
|
sget-object v0, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel;->Companion:Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$Companion;
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
iget-object v1, p0, Lf/a/n/a0;->z:Lrx/subjects/BehaviorSubject;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
sget-object v2, Lf/a/n/a0$c;->d:Lf/a/n/a0$c;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-virtual {v1, v2}, Lrx/Observable;->D(Lh0/k/b;)Lrx/Observable;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "filterPublisher.map { \"!$it\" }"
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-static {v1, v2}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$Companion;->getForNav(Lrx/Observable;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
iget-object v1, p0, Lf/a/n/a0;->y:Lcom/discord/widgets/user/search/WidgetGlobalSearchAdapter;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-static {v0, p0, v1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
const-class v3, Lf/a/n/a0;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
new-instance v8, Lf/a/n/a0$d;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-direct {v8, p0}, Lf/a/n/a0$d;-><init>(Lf/a/n/a0;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const/16 v9, 0x1e
|
|
|
|
|
|
|
|
const/4 v10, 0x0
|
|
|
|
|
|
|
|
invoke-static/range {v2 .. v10}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onAttachedToWindow()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/discord/overlay/views/OverlayBubbleWrap;->onAttachedToWindow()V
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-virtual {p0}, Lf/a/n/a0;->m()V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const v1, 0x7f020017
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Landroid/animation/AnimatorInflater;->loadAnimator(Landroid/content/Context;I)Landroid/animation/Animator;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
const v1, 0x7f0a0328
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, v1}, Landroid/widget/FrameLayout;->findViewById(I)Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Landroid/animation/Animator;->setTarget(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroid/animation/Animator;->start()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/overlay/views/OverlayDialog;->onConfigurationChanged(Landroid/content/res/Configuration;)V
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-virtual {p0}, Lf/a/n/j;->getUnsubscribeSignal()Lrx/subjects/Subject;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-interface {p1, v0}, Lh0/g;->onNext(Ljava/lang/Object;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
const-string/jumbo p1, "target"
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-static {p0, p1}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
sget-object v0, La0/i;->b:La0/i;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-static {p0, p1}, Ly/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
sget-object p1, La0/i;->a:Ljava/util/WeakHashMap;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, p0}, Ljava/util/WeakHashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
check-cast p1, Ljava/util/Collection;
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
check-cast v0, La0/h;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
sget-object v1, La0/h$a;->a:La0/h$a;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
iput-object v1, v0, La0/h;->a:Ljava/lang/Object;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-11-13 01:15:36 +00:00
|
|
|
sget-object p1, La0/i;->a:Ljava/util/WeakHashMap;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1, p0}, Ljava/util/WeakHashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->removeAllViewsInLayout()V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
const v0, 0x7f0d00bb
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
invoke-static {p1, v0, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
|
|
|
|
|
2020-11-13 01:15:36 +00:00
|
|
|
invoke-virtual {p0}, Lf/a/n/a0;->m()V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|