apkfuckery/com.discord/smali/e/a/j/c0.smali

619 lines
17 KiB
Smali
Raw Normal View History

2020-01-28 00:59:01 +00:00
.class public final Le/a/j/c0;
.super Le/a/j/h;
.source "OverlayVoiceSelectorBubbleDialog.kt"
# interfaces
.implements Lcom/discord/app/AppComponent;
# static fields
.field public static final synthetic B:[Lkotlin/reflect/KProperty;
2019-12-06 03:29:40 +00:00
2020-01-22 01:17:22 +00:00
# instance fields
2020-01-28 00:59:01 +00:00
.field public A:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
.field public final u:Lkotlin/properties/ReadOnlyProperty;
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
.field public final v:Lkotlin/properties/ReadOnlyProperty;
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
.field public final w:Lkotlin/properties/ReadOnlyProperty;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
.field public final x:Lkotlin/properties/ReadOnlyProperty;
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
.field public final y:Lcom/discord/widgets/user/search/WidgetGlobalSearchAdapter;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
.field public final z:Lrx/subjects/BehaviorSubject;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/subjects/BehaviorSubject<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
# direct methods
2020-01-28 00:59:01 +00:00
.method public static constructor <clinit>()V
.locals 6
const/4 v0, 0x4
new-array v0, v0, [Lkotlin/reflect/KProperty;
2020-02-20 19:33:18 +00:00
new-instance v1, Lw/u/b/u;
2020-01-28 00:59:01 +00:00
const-class v2, Le/a/j/c0;
2020-02-20 19:33:18 +00:00
invoke-static {v2}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
2020-01-28 00:59:01 +00:00
move-result-object v2
const-string v3, "closeBtn"
const-string v4, "getCloseBtn()Landroid/view/View;"
2020-02-20 19:33:18 +00:00
invoke-direct {v1, v2, v3, v4}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2020-01-28 00:59:01 +00:00
2020-02-20 19:33:18 +00:00
sget-object v2, Lw/u/b/w;->a:Lw/u/b/x;
2020-01-28 00:59:01 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v2, v1}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
2020-01-28 00:59:01 +00:00
const/4 v2, 0x0
aput-object v1, v0, v2
const/4 v1, 0x1
2020-02-20 19:33:18 +00:00
new-instance v2, Lw/u/b/u;
2020-01-28 00:59:01 +00:00
const-class v3, Le/a/j/c0;
2020-02-20 19:33:18 +00:00
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
2020-01-28 00:59:01 +00:00
move-result-object v3
const-string v4, "filterEt"
const-string v5, "getFilterEt()Landroid/widget/EditText;"
2020-02-20 19:33:18 +00:00
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2020-01-28 00:59:01 +00:00
2020-02-20 19:33:18 +00:00
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
2020-01-28 00:59:01 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
2020-01-28 00:59:01 +00:00
aput-object v2, v0, v1
const/4 v1, 0x2
2020-02-20 19:33:18 +00:00
new-instance v2, Lw/u/b/u;
2020-01-28 00:59:01 +00:00
const-class v3, Le/a/j/c0;
2020-02-20 19:33:18 +00:00
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
2020-01-28 00:59:01 +00:00
move-result-object v3
const-string v4, "emptyResults"
const-string v5, "getEmptyResults()Landroid/view/View;"
2020-02-20 19:33:18 +00:00
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2020-01-28 00:59:01 +00:00
2020-02-20 19:33:18 +00:00
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
2020-01-28 00:59:01 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
2020-01-28 00:59:01 +00:00
aput-object v2, v0, v1
const/4 v1, 0x3
2020-02-20 19:33:18 +00:00
new-instance v2, Lw/u/b/u;
2020-01-28 00:59:01 +00:00
const-class v3, Le/a/j/c0;
2020-02-20 19:33:18 +00:00
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
2020-01-28 00:59:01 +00:00
move-result-object v3
const-string v4, "resultsRv"
const-string v5, "getResultsRv()Landroidx/recyclerview/widget/RecyclerView;"
2020-02-20 19:33:18 +00:00
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
2020-01-28 00:59:01 +00:00
2020-02-20 19:33:18 +00:00
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
2020-01-28 00:59:01 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
2020-01-28 00:59:01 +00:00
aput-object v2, v0, v1
sput-object v0, Le/a/j/c0;->B:[Lkotlin/reflect/KProperty;
return-void
.end method
2020-01-22 01:17:22 +00:00
.method public constructor <init>(Landroid/content/Context;)V
.locals 1
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
if-eqz p1, :cond_0
invoke-direct {p0, p1}, Le/a/j/h;-><init>(Landroid/content/Context;)V
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
const/16 p1, 0x8
invoke-virtual {p0, p1}, Lcom/discord/overlay/views/OverlayDialog;->a(I)V
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
2019-12-06 03:29:40 +00:00
2020-01-22 01:17:22 +00:00
move-result-object p1
2019-12-06 03:29:40 +00:00
2020-02-24 20:20:24 +00:00
const v0, 0x7f0d0082
2019-12-06 03:29:40 +00:00
2020-01-22 01:17:22 +00:00
invoke-static {p1, v0, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
2019-12-06 03:29:40 +00:00
2020-02-20 23:34:33 +00:00
const p1, 0x7f0a0239
2020-01-28 00:59:01 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p0, p1}, Lx/a/a2/w;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
2020-01-28 00:59:01 +00:00
2020-01-22 01:17:22 +00:00
move-result-object p1
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
iput-object p1, p0, Le/a/j/c0;->u:Lkotlin/properties/ReadOnlyProperty;
2019-12-06 03:29:40 +00:00
2020-03-01 21:12:02 +00:00
const p1, 0x7f0a06a0
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p0, p1}, Lx/a/a2/w;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
move-result-object p1
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
iput-object p1, p0, Le/a/j/c0;->v:Lkotlin/properties/ReadOnlyProperty;
2019-12-06 03:29:40 +00:00
2020-02-20 23:34:33 +00:00
const p1, 0x7f0a02e3
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p0, p1}, Lx/a/a2/w;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
move-result-object p1
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
iput-object p1, p0, Le/a/j/c0;->w:Lkotlin/properties/ReadOnlyProperty;
2019-12-06 03:29:40 +00:00
2020-03-01 21:12:02 +00:00
const p1, 0x7f0a064d
2019-12-06 03:29:40 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p0, p1}, Lx/a/a2/w;->a(Landroid/view/View;I)Lkotlin/properties/ReadOnlyProperty;
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
move-result-object p1
iput-object p1, p0, Le/a/j/c0;->x:Lkotlin/properties/ReadOnlyProperty;
new-instance p1, Lcom/discord/widgets/user/search/WidgetGlobalSearchAdapter;
invoke-direct {p0}, Le/a/j/c0;->getResultsRv()Landroidx/recyclerview/widget/RecyclerView;
2019-12-06 03:29:40 +00:00
2020-01-22 01:17:22 +00:00
move-result-object v0
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
invoke-direct {p1, v0}, Lcom/discord/widgets/user/search/WidgetGlobalSearchAdapter;-><init>(Landroidx/recyclerview/widget/RecyclerView;)V
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
iput-object p1, p0, Le/a/j/c0;->y:Lcom/discord/widgets/user/search/WidgetGlobalSearchAdapter;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
const-string p1, ""
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
invoke-static {p1}, Lrx/subjects/BehaviorSubject;->a(Ljava/lang/Object;)Lrx/subjects/BehaviorSubject;
2019-12-06 03:29:40 +00:00
move-result-object p1
2020-01-28 00:59:01 +00:00
iput-object p1, p0, Le/a/j/c0;->z:Lrx/subjects/BehaviorSubject;
2020-01-22 01:17:22 +00:00
return-void
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
:cond_0
const-string p1, "context"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
const/4 p1, 0x0
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
throw p1
.end method
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
.method public static final synthetic a(Le/a/j/c0;)Landroidx/recyclerview/widget/RecyclerView;
.locals 0
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
invoke-direct {p0}, Le/a/j/c0;->getResultsRv()Landroidx/recyclerview/widget/RecyclerView;
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
move-result-object p0
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
return-object p0
2020-01-22 01:17:22 +00:00
.end method
2020-01-28 00:59:01 +00:00
.method public static final synthetic a(Le/a/j/c0;Lcom/discord/widgets/user/search/WidgetGlobalSearchModel;)V
.locals 8
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
invoke-direct {p0}, Le/a/j/c0;->getEmptyResults()Landroid/view/View;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
move-result-object v0
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
invoke-virtual {p1}, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel;->getData()Ljava/util/List;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
move-result-object v1
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
invoke-interface {v1}, Ljava/util/List;->isEmpty()Z
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
move-result v1
2020-01-22 01:17:22 +00:00
2020-03-01 21:12:02 +00:00
const/4 v2, 0x0
2020-01-22 01:17:22 +00:00
2020-03-01 21:12:02 +00:00
const/4 v3, 0x2
2020-03-01 08:10:35 +00:00
2020-03-01 21:12:02 +00:00
const/4 v4, 0x0
2020-01-28 00:59:01 +00:00
2020-03-01 21:12:02 +00:00
invoke-static {v0, v1, v4, v3, v2}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy$default(Landroid/view/View;ZIILjava/lang/Object;)V
2020-01-28 00:59:01 +00:00
invoke-direct {p0}, Le/a/j/c0;->getResultsRv()Landroidx/recyclerview/widget/RecyclerView;
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
2020-03-01 21:12:02 +00:00
const/4 v5, 0x1
2020-01-28 00:59:01 +00:00
2020-03-01 21:12:02 +00:00
xor-int/2addr v1, v5
2020-01-28 00:59:01 +00:00
2020-03-01 21:12:02 +00:00
invoke-static {v0, v1, v4, v3, v2}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy$default(Landroid/view/View;ZIILjava/lang/Object;)V
2020-01-28 00:59:01 +00:00
iget-object v0, p0, Le/a/j/c0;->y:Lcom/discord/widgets/user/search/WidgetGlobalSearchAdapter;
new-instance v1, Le/a/j/a0;
invoke-direct {v1, p0, p1}, Le/a/j/a0;-><init>(Le/a/j/c0;Lcom/discord/widgets/user/search/WidgetGlobalSearchModel;)V
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
2020-01-22 01:17:22 +00:00
2020-03-01 21:12:02 +00:00
:cond_0
:goto_0
2020-01-28 00:59:01 +00:00
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
2020-03-01 21:12:02 +00:00
move-result v6
2020-01-28 00:59:01 +00:00
2020-03-01 21:12:02 +00:00
if-eqz v6, :cond_2
2020-01-28 00:59:01 +00:00
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
2020-03-01 21:12:02 +00:00
move-result-object v6
2020-01-28 00:59:01 +00:00
2020-03-01 21:12:02 +00:00
move-object v7, v6
2020-01-28 00:59:01 +00:00
2020-03-01 21:12:02 +00:00
check-cast v7, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ItemDataPayload;
2020-01-28 00:59:01 +00:00
2020-03-01 21:12:02 +00:00
invoke-interface {v7}, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$ItemDataPayload;->getChannel()Lcom/discord/models/domain/ModelChannel;
2020-01-28 00:59:01 +00:00
2020-03-01 21:12:02 +00:00
move-result-object v7
2020-01-28 00:59:01 +00:00
2020-03-01 21:12:02 +00:00
if-eqz v7, :cond_1
2020-01-28 00:59:01 +00:00
2020-03-01 21:12:02 +00:00
invoke-virtual {v7}, Lcom/discord/models/domain/ModelChannel;->getType()I
2020-01-28 00:59:01 +00:00
2020-03-01 21:12:02 +00:00
move-result v7
2020-01-28 00:59:01 +00:00
2020-03-01 21:12:02 +00:00
if-ne v7, v3, :cond_1
2020-01-22 01:17:22 +00:00
2020-03-01 21:12:02 +00:00
const/4 v7, 0x1
2019-12-06 03:29:40 +00:00
2020-03-01 21:12:02 +00:00
goto :goto_1
2020-01-22 01:17:22 +00:00
2020-03-01 21:12:02 +00:00
:cond_1
const/4 v7, 0x0
2020-01-22 01:17:22 +00:00
2020-03-01 21:12:02 +00:00
:goto_1
if-eqz v7, :cond_0
2019-12-06 03:29:40 +00:00
2020-03-01 21:12:02 +00:00
invoke-interface {v2, v6}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
2019-12-06 03:29:40 +00:00
2020-03-01 21:12:02 +00:00
goto :goto_0
2020-03-01 08:10:35 +00:00
2020-03-01 21:12:02 +00:00
:cond_2
2020-01-28 00:59:01 +00:00
invoke-virtual {v0, v2}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;->setData(Ljava/util/List;)V
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
new-instance v1, Le/a/j/b0;
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +00:00
invoke-direct {v1, p0, p1}, Le/a/j/b0;-><init>(Le/a/j/c0;Lcom/discord/widgets/user/search/WidgetGlobalSearchModel;)V
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
invoke-virtual {v0, v1}, Lcom/discord/widgets/user/search/WidgetGlobalSearchAdapter;->setOnSelectedListener(Lkotlin/jvm/functions/Function4;)V
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
return-void
.end method
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
.method private final getCloseBtn()Landroid/view/View;
.locals 3
iget-object v0, p0, Le/a/j/c0;->u:Lkotlin/properties/ReadOnlyProperty;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
sget-object v1, Le/a/j/c0;->B:[Lkotlin/reflect/KProperty;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
const/4 v2, 0x0
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
aget-object v1, v1, v2
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
2020-01-22 01:17:22 +00:00
move-result-object v0
2020-01-28 00:59:01 +00:00
check-cast v0, Landroid/view/View;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
return-object v0
.end method
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
.method private final getEmptyResults()Landroid/view/View;
.locals 3
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
iget-object v0, p0, Le/a/j/c0;->w:Lkotlin/properties/ReadOnlyProperty;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
sget-object v1, Le/a/j/c0;->B:[Lkotlin/reflect/KProperty;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
const/4 v2, 0x2
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
aget-object v1, v1, v2
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
move-result-object v0
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
check-cast v0, Landroid/view/View;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
return-object v0
.end method
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
.method private final getFilterEt()Landroid/widget/EditText;
.locals 3
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
iget-object v0, p0, Le/a/j/c0;->v:Lkotlin/properties/ReadOnlyProperty;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
sget-object v1, Le/a/j/c0;->B:[Lkotlin/reflect/KProperty;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
const/4 v2, 0x1
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
aget-object v1, v1, v2
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
move-result-object v0
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
check-cast v0, Landroid/widget/EditText;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
return-object v0
.end method
.method private final getResultsRv()Landroidx/recyclerview/widget/RecyclerView;
.locals 3
iget-object v0, p0, Le/a/j/c0;->x:Lkotlin/properties/ReadOnlyProperty;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
sget-object v1, Le/a/j/c0;->B:[Lkotlin/reflect/KProperty;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
const/4 v2, 0x3
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
aget-object v1, v1, v2
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
2020-01-22 01:17:22 +00:00
move-result-object v0
2020-01-28 00:59:01 +00:00
check-cast v0, Landroidx/recyclerview/widget/RecyclerView;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
return-object v0
.end method
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
# virtual methods
.method public final e()V
.locals 11
invoke-direct {p0}, Le/a/j/c0;->getCloseBtn()Landroid/view/View;
move-result-object v0
new-instance v1, Le/a/j/c0$a;
invoke-direct {v1, p0}, Le/a/j/c0$a;-><init>(Le/a/j/c0;)V
invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
invoke-direct {p0}, Le/a/j/c0;->getFilterEt()Landroid/widget/EditText;
move-result-object v0
iget-object v1, p0, Le/a/j/c0;->A:Ljava/lang/String;
invoke-virtual {v0, v1}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V
invoke-direct {p0}, Le/a/j/c0;->getFilterEt()Landroid/widget/EditText;
move-result-object v0
new-instance v7, Lcom/discord/utilities/view/text/TextWatcher;
new-instance v4, Le/a/j/c0$b;
invoke-direct {v4, p0}, Le/a/j/c0$b;-><init>(Le/a/j/c0;)V
const/4 v2, 0x0
const/4 v3, 0x0
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
iget-object v0, p0, Le/a/j/c0;->y:Lcom/discord/widgets/user/search/WidgetGlobalSearchAdapter;
invoke-direct {p0}, Le/a/j/c0;->getResultsRv()Landroidx/recyclerview/widget/RecyclerView;
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;
iget-object v1, p0, Le/a/j/c0;->y:Lcom/discord/widgets/user/search/WidgetGlobalSearchAdapter;
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;
iget-object v1, p0, Le/a/j/c0;->z:Lrx/subjects/BehaviorSubject;
sget-object v2, Le/a/j/c0$c;->d:Le/a/j/c0$c;
2020-02-20 19:33:18 +00:00
invoke-virtual {v1, v2}, Lrx/Observable;->f(Le0/l/i;)Lrx/Observable;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
move-result-object v1
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
const-string v2, "filterPublisher.map { \"!$it\" }"
2020-01-22 01:17:22 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v1, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
invoke-virtual {v0, v1}, Lcom/discord/widgets/user/search/WidgetGlobalSearchModel$Companion;->getForNav(Lrx/Observable;)Lrx/Observable;
move-result-object v0
iget-object v1, p0, Le/a/j/c0;->y:Lcom/discord/widgets/user/search/WidgetGlobalSearchAdapter;
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;
2020-01-22 01:17:22 +00:00
move-result-object v2
2020-01-28 00:59:01 +00:00
const-class v3, Le/a/j/c0;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
new-instance v8, Le/a/j/c0$d;
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
invoke-direct {v8, p0}, Le/a/j/c0$d;-><init>(Le/a/j/c0;)V
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
const/4 v4, 0x0
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
const/4 v5, 0x0
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
const/4 v7, 0x0
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
const/16 v9, 0x1e
const/4 v10, 0x0
2020-01-22 01:17:22 +00:00
2020-01-28 00:59:01 +00:00
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
2020-01-22 01:17:22 +00:00
return-void
.end method
2020-01-28 00:59:01 +00:00
.method public getClosingAnimator()Landroid/animation/Animator;
.locals 2
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
move-result-object v0
const v1, 0x7f020012
invoke-static {v0, v1}, Landroid/animation/AnimatorInflater;->loadAnimator(Landroid/content/Context;I)Landroid/animation/Animator;
move-result-object v0
2020-02-20 23:34:33 +00:00
const v1, 0x7f0a0285
2019-12-06 03:29:40 +00:00
2020-01-28 00:59:01 +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-02-20 19:33:18 +00:00
invoke-static {v0, v1}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
2020-01-22 01:17:22 +00:00
return-object v0
2019-12-06 03:29:40 +00:00
.end method
2020-01-28 00:59:01 +00:00
.method public onAttachedToWindow()V
.locals 2
invoke-super {p0}, Lcom/discord/overlay/views/OverlayBubbleWrap;->onAttachedToWindow()V
invoke-virtual {p0}, Le/a/j/c0;->e()V
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
move-result-object v0
const v1, 0x7f020013
invoke-static {v0, v1}, Landroid/animation/AnimatorInflater;->loadAnimator(Landroid/content/Context;I)Landroid/animation/Animator;
move-result-object v0
2020-02-20 23:34:33 +00:00
const v1, 0x7f0a0285
2020-01-28 00:59:01 +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 1
invoke-super {p0, p1}, Lcom/discord/overlay/views/OverlayDialog;->onConfigurationChanged(Landroid/content/res/Configuration;)V
invoke-virtual {p0}, Le/a/j/h;->getPaused()Lrx/subjects/Subject;
move-result-object p1
const/4 v0, 0x0
2020-02-20 19:33:18 +00:00
invoke-interface {p1, v0}, Le0/g;->onNext(Ljava/lang/Object;)V
2020-01-28 00:59:01 +00:00
2020-02-20 19:33:18 +00:00
sget-object p1, Ly/i;->b:Ly/i;
2020-01-28 00:59:01 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {p1, p0}, Ly/i;->a(Ljava/lang/Object;)V
2020-01-28 00:59:01 +00:00
invoke-virtual {p0}, Landroid/widget/FrameLayout;->removeAllViewsInLayout()V
invoke-virtual {p0}, Landroid/widget/FrameLayout;->getContext()Landroid/content/Context;
move-result-object p1
2020-02-24 20:20:24 +00:00
const v0, 0x7f0d0082
2020-01-28 00:59:01 +00:00
invoke-static {p1, v0, p0}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
invoke-virtual {p0}, Le/a/j/c0;->e()V
return-void
.end method