apkfuckery/com.discord/smali/com/discord/widgets/servers/WidgetServerNotificationsOv...

375 lines
14 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;
.super Lcom/discord/app/AppFragment;
.source "WidgetServerNotificationsOverrideSelector.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector$Companion;
}
.end annotation
# static fields
2019-12-06 03:29:40 +00:00
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
2019-07-24 11:27:29 +00:00
.field public static final Companion:Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector$Companion;
# instance fields
2019-12-06 03:29:40 +00:00
.field public final channelList$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public channelsAdapter:Lcom/discord/widgets/servers/SettingsChannelListAdapter;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final filterPublisher:Lrx/subjects/BehaviorSubject;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/subjects/BehaviorSubject<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public final searchInput$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public static constructor <clinit>()V
2019-08-30 20:04:20 +00:00
.locals 6
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-array v0, v0, [Lkotlin/reflect/KProperty;
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
new-instance v1, Lw/u/b/u;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v2, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v2}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v3, "searchInput"
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v4, "getSearchInput()Landroid/widget/EditText;"
2019-07-24 11:27:29 +00:00
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
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
sget-object v2, Lw/u/b/w;->a:Lw/u/b/x;
2019-07-24 11:27:29 +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;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v2, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v1, v0, v2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x1
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
new-instance v2, Lw/u/b/u;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v3, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v4, "channelList"
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v5, "getChannelList()Landroidx/recyclerview/widget/RecyclerView;"
2019-07-24 11:27:29 +00:00
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
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
2019-07-24 11:27:29 +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;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v2, v0, v1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sput-object v0, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
2019-07-24 11:27:29 +00:00
new-instance v0, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector$Companion;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;->Companion:Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector$Companion;
return-void
.end method
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
2020-03-16 23:08:34 +00:00
const v0, 0x7f0a06e5
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
move-result-object v0
iput-object v0, p0, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;->searchInput$delegate:Lkotlin/properties/ReadOnlyProperty;
2020-03-14 04:13:36 +00:00
const v0, 0x7f0a03bf
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
move-result-object v0
iput-object v0, p0, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;->channelList$delegate:Lkotlin/properties/ReadOnlyProperty;
const-string v0, ""
2019-12-06 03:29:40 +00:00
invoke-static {v0}, Lrx/subjects/BehaviorSubject;->a(Ljava/lang/Object;)Lrx/subjects/BehaviorSubject;
2019-07-24 11:27:29 +00:00
move-result-object v0
iput-object v0, p0, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;->filterPublisher:Lrx/subjects/BehaviorSubject;
return-void
.end method
.method public static final synthetic access$getChannelsAdapter$p(Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;)Lcom/discord/widgets/servers/SettingsChannelListAdapter;
2019-12-06 03:29:40 +00:00
.locals 0
2019-07-24 11:27:29 +00:00
iget-object p0, p0, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;->channelsAdapter:Lcom/discord/widgets/servers/SettingsChannelListAdapter;
2019-12-06 03:29:40 +00:00
if-eqz p0, :cond_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
return-object p0
2019-07-24 11:27:29 +00:00
:cond_0
2019-12-06 03:29:40 +00:00
const-string p0, "channelsAdapter"
2020-02-20 19:33:18 +00:00
invoke-static {p0}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p0, 0x0
throw p0
2019-07-24 11:27:29 +00:00
.end method
.method public static final synthetic access$getFilterPublisher$p(Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;)Lrx/subjects/BehaviorSubject;
.locals 0
iget-object p0, p0, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;->filterPublisher:Lrx/subjects/BehaviorSubject;
return-object p0
.end method
.method public static final synthetic access$setChannelsAdapter$p(Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;Lcom/discord/widgets/servers/SettingsChannelListAdapter;)V
.locals 0
iput-object p1, p0, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;->channelsAdapter:Lcom/discord/widgets/servers/SettingsChannelListAdapter;
return-void
.end method
.method private final getChannelList()Landroidx/recyclerview/widget/RecyclerView;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;->channelList$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
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, Landroidx/recyclerview/widget/RecyclerView;
return-object v0
.end method
.method private final getSearchInput()Landroid/widget/EditText;
.locals 3
iget-object v0, p0, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;->searchInput$delegate:Lkotlin/properties/ReadOnlyProperty;
sget-object v1, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
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/widget/EditText;
return-object v0
.end method
# virtual methods
2019-12-06 03:29:40 +00:00
.method public getContentViewResId()I
2019-07-24 11:27:29 +00:00
.locals 1
2020-03-16 23:08:34 +00:00
const v0, 0x7f0d01f3
2019-07-24 11:27:29 +00:00
return v0
.end method
2019-12-06 03:29:40 +00:00
.method public onViewBound(Landroid/view/View;)V
.locals 4
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_1
2019-07-24 11:27:29 +00:00
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {p0, v1, v0, p1, v0}, Lcom/discord/app/AppFragment;->setActionBarDisplayHomeAsUpEnabled$default(Lcom/discord/app/AppFragment;ZLjava/lang/Integer;ILjava/lang/Object;)Landroidx/appcompat/widget/Toolbar;
2019-07-24 11:27:29 +00:00
2020-03-17 03:19:34 +00:00
const p1, 0x7f120d97
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p1}, Lcom/discord/app/AppFragment;->setActionBarTitle(I)Lkotlin/Unit;
2019-07-24 11:27:29 +00:00
2020-03-14 04:13:36 +00:00
const p1, 0x7f1211ae
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p1}, Lcom/discord/app/AppFragment;->setActionBarSubtitle(I)Lkotlin/Unit;
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;->getSearchInput()Landroid/widget/EditText;
move-result-object p1
2020-03-14 04:13:36 +00:00
const v2, 0x7f121164
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p1, v2}, Landroid/widget/EditText;->setHint(I)V
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;->getSearchInput()Landroid/widget/EditText;
move-result-object p1
new-instance v2, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector$onViewBound$1;
invoke-direct {v2, p0}, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector$onViewBound$1;-><init>(Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;)V
2019-12-06 03:29:40 +00:00
invoke-static {p1, p0, v2}, Lcom/discord/utilities/view/text/TextWatcherKt;->addBindedTextWatcher(Landroid/widget/TextView;Landroidx/fragment/app/Fragment;Lkotlin/jvm/functions/Function1;)V
2019-07-24 11:27:29 +00:00
sget-object p1, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;->Companion:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter$Companion;
2019-12-06 03:29:40 +00:00
new-instance v2, Lcom/discord/widgets/servers/SettingsChannelListAdapter;
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;->getChannelList()Landroidx/recyclerview/widget/RecyclerView;
2019-12-06 03:29:40 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v2, v3, v1}, Lcom/discord/widgets/servers/SettingsChannelListAdapter;-><init>(Landroidx/recyclerview/widget/RecyclerView;Z)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p1, v2}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter$Companion;->configure(Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;)Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;
2019-07-24 11:27:29 +00:00
move-result-object p1
check-cast p1, Lcom/discord/widgets/servers/SettingsChannelListAdapter;
iput-object p1, p0, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;->channelsAdapter:Lcom/discord/widgets/servers/SettingsChannelListAdapter;
iget-object p1, p0, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;->channelsAdapter:Lcom/discord/widgets/servers/SettingsChannelListAdapter;
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-instance v0, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector$onViewBound$2;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v0, p0}, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector$onViewBound$2;-><init>(Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p1, v0}, Lcom/discord/widgets/servers/SettingsChannelListAdapter;->setOnClickListener(Lkotlin/jvm/functions/Function1;)V
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;->getChannelList()Landroidx/recyclerview/widget/RecyclerView;
move-result-object p1
2019-12-06 03:29:40 +00:00
invoke-virtual {p1, v1}, Landroidx/recyclerview/widget/RecyclerView;->setNestedScrollingEnabled(Z)V
2019-07-24 11:27:29 +00:00
return-void
2019-12-06 03:29:40 +00:00
:cond_0
const-string p1, "channelsAdapter"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v0
:cond_1
const-string p1, "view"
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
throw v0
2019-07-24 11:27:29 +00:00
.end method
2019-12-06 03:29:40 +00:00
.method public onViewBoundOrOnResume()V
.locals 12
2019-07-24 11:27:29 +00:00
invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Lcom/discord/app/AppFragment;->getMostRecentIntent()Landroid/content/Intent;
2019-07-24 11:27:29 +00:00
move-result-object v0
const-string v1, "com.discord.intent.extra.EXTRA_GUILD_ID"
const-wide/16 v2, -0x1
invoke-virtual {v0, v1, v2, v3}, Landroid/content/Intent;->getLongExtra(Ljava/lang/String;J)J
move-result-wide v0
sget-object v2, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;->Companion:Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector$Companion;
iget-object v3, p0, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;->filterPublisher:Lrx/subjects/BehaviorSubject;
const-string v4, "filterPublisher"
2020-02-20 19:33:18 +00:00
invoke-static {v3, v4}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
invoke-static {v2, v0, v1, v3}, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector$Companion;->access$get(Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector$Companion;JLrx/subjects/BehaviorSubject;)Lrx/Observable;
move-result-object v0
const-string v1, "get(guildId, filterPublisher)"
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-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v2, 0x2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {v0, p0, v1, v2, v1}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui$default(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;ILjava/lang/Object;)Lrx/Observable;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-class v4, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-instance v9, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector$onViewBoundOrOnResume$1;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v9, p0}, Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector$onViewBoundOrOnResume$1;-><init>(Lcom/discord/widgets/servers/WidgetServerNotificationsOverrideSelector;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v5, 0x0
2019-07-24 11:27:29 +00:00
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
2019-12-06 03:29:40 +00:00
const/16 v10, 0x1e
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v11, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-static/range {v3 .. v11}, 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
2019-07-24 11:27:29 +00:00
return-void
.end method