2019-02-04 20:08:30 +00:00
|
|
|
.class public final Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;
|
|
|
|
.super Lcom/discord/app/AppFragment;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "WidgetChannelNotificationSettings.kt"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;,
|
|
|
|
Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Companion;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
|
|
|
.field static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
.field public static final Companion:Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Companion;
|
|
|
|
|
|
|
|
.field private static final INTENT_SHOW_SYSTEM_SETTINGS:Ljava/lang/String; = "SHOW_SYSTEM_SETTING"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
|
|
|
.field private final channelSettingsNotificationsMuteToggle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field private final notificationFrequencyWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field private notificationSettingsRadioManager:Lcom/discord/views/RadioManager;
|
|
|
|
|
|
|
|
.field private final notificationSettingsRadios$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
.field private final systemNotificationsSettings$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method static constructor <clinit>()V
|
|
|
|
.locals 5
|
|
|
|
|
|
|
|
const/4 v0, 0x4
|
|
|
|
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
new-instance v1, Lkotlin/jvm/internal/u;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/v;->N(Ljava/lang/Class;)Lkotlin/reflect/b;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "channelSettingsNotificationsMuteToggle"
|
|
|
|
|
|
|
|
const-string v4, "getChannelSettingsNotificationsMuteToggle()Lcom/discord/views/CheckedSetting;"
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/v;->a(Lkotlin/jvm/internal/t;)Lkotlin/reflect/d;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
new-instance v1, Lkotlin/jvm/internal/u;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/v;->N(Ljava/lang/Class;)Lkotlin/reflect/b;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "notificationFrequencyWrap"
|
|
|
|
|
|
|
|
const-string v4, "getNotificationFrequencyWrap()Landroid/view/View;"
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/v;->a(Lkotlin/jvm/internal/t;)Lkotlin/reflect/d;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
new-instance v1, Lkotlin/jvm/internal/u;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/v;->N(Ljava/lang/Class;)Lkotlin/reflect/b;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "notificationSettingsRadios"
|
|
|
|
|
|
|
|
const-string v4, "getNotificationSettingsRadios()Ljava/util/List;"
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/v;->a(Lkotlin/jvm/internal/t;)Lkotlin/reflect/d;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
new-instance v1, Lkotlin/jvm/internal/u;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-class v2, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-static {v2}, Lkotlin/jvm/internal/v;->N(Ljava/lang/Class;)Lkotlin/reflect/b;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const-string v3, "systemNotificationsSettings"
|
|
|
|
|
|
|
|
const-string v4, "getSystemNotificationsSettings()Landroid/view/View;"
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-direct {v1, v2, v3, v4}, Lkotlin/jvm/internal/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-static {v1}, Lkotlin/jvm/internal/v;->a(Lkotlin/jvm/internal/t;)Lkotlin/reflect/d;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x3
|
|
|
|
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Companion;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->Companion:Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Companion;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
|
2019-04-18 05:08:29 +00:00
|
|
|
const v0, 0x7f0a0111
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->channelSettingsNotificationsMuteToggle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-04-18 05:08:29 +00:00
|
|
|
const v0, 0x7f0a0110
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->notificationFrequencyWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
const/4 v0, 0x3
|
|
|
|
|
|
|
|
new-array v0, v0, [I
|
|
|
|
|
|
|
|
fill-array-data v0, :array_0
|
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->a(Landroidx/fragment/app/Fragment;[I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->notificationSettingsRadios$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2019-04-18 05:08:29 +00:00
|
|
|
const v0, 0x7f0a00e4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p0, v0}, Lkotterknife/b;->c(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->systemNotificationsSettings$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
nop
|
|
|
|
|
|
|
|
:array_0
|
|
|
|
.array-data 4
|
2019-03-08 06:19:26 +00:00
|
|
|
0x7f0a010d
|
2019-03-14 20:04:00 +00:00
|
|
|
0x7f0a010e
|
2019-04-18 05:08:29 +00:00
|
|
|
0x7f0a010f
|
2019-02-04 20:08:30 +00:00
|
|
|
.end array-data
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->configureUI(Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getChannelSettingsNotificationsMuteToggle$p(Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;)Lcom/discord/views/CheckedSetting;
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->getChannelSettingsNotificationsMuteToggle()Lcom/discord/views/CheckedSetting;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$getNotificationSettingsRadioManager$p(Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;)Lcom/discord/views/RadioManager;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object p0, p0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->notificationSettingsRadioManager:Lcom/discord/views/RadioManager;
|
|
|
|
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
|
|
|
|
const-string v0, "notificationSettingsRadioManager"
|
|
|
|
|
2019-04-25 10:39:51 +00:00
|
|
|
invoke-static {v0}, Lkotlin/jvm/internal/j;->dr(Ljava/lang/String;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$setNotificationSettingsRadioManager$p(Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;Lcom/discord/views/RadioManager;)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->notificationSettingsRadioManager:Lcom/discord/views/RadioManager;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final configureNotificationRadios(Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;)V
|
2019-03-08 06:19:26 +00:00
|
|
|
.locals 7
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$configureNotificationRadios$1;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$configureNotificationRadios$1;-><init>(Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->getNotificationFrequencyWrap()Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;->getGuildSettings()Lcom/discord/models/domain/ModelUserGuildSettings;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelUserGuildSettings;->isMuted()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;->getChannelIsMuted()Z
|
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
2019-03-08 06:19:26 +00:00
|
|
|
const/4 v5, 0x0
|
|
|
|
|
|
|
|
const/4 v6, 0x2
|
|
|
|
|
|
|
|
invoke-static {v1, v2, v4, v6, v5}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy$default(Landroid/view/View;ZIILjava/lang/Object;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->getNotificationSettingsRadios()Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-interface {v1, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Lcom/discord/views/CheckedSetting;
|
|
|
|
|
|
|
|
invoke-interface {v1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
check-cast v3, Lcom/discord/views/CheckedSetting;
|
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-interface {v1, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Lcom/discord/views/CheckedSetting;
|
|
|
|
|
|
|
|
sget v4, Lcom/discord/models/domain/ModelUserGuildSettings;->FREQUENCY_ALL:I
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1, v2, v4}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$configureNotificationRadios$1;->invoke(Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;Lcom/discord/views/CheckedSetting;I)V
|
|
|
|
|
|
|
|
sget v2, Lcom/discord/models/domain/ModelUserGuildSettings;->FREQUENCY_MENTIONS:I
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1, v3, v2}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$configureNotificationRadios$1;->invoke(Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;Lcom/discord/views/CheckedSetting;I)V
|
|
|
|
|
|
|
|
sget v2, Lcom/discord/models/domain/ModelUserGuildSettings;->FREQUENCY_NOTHING:I
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1, v1, v2}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$configureNotificationRadios$1;->invoke(Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;Lcom/discord/views/CheckedSetting;I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final configureUI(Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;)V
|
|
|
|
.locals 7
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;->getChannel()Lcom/discord/models/domain/ModelChannel;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->requireContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "requireContext()"
|
|
|
|
|
|
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Lcom/discord/utilities/channel/ChannelUtils;->getDisplayName(Lcom/discord/models/domain/ModelChannel;Landroid/content/Context;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/CharSequence;
|
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {p0, v0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->setActionBarSubtitle(Ljava/lang/CharSequence;)Lkotlin/Unit;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->getChannelSettingsNotificationsMuteToggle()Lcom/discord/views/CheckedSetting;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;->getChannelIsMuted()Z
|
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
move-result v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/views/CheckedSetting;->setChecked(Z)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->getChannelSettingsNotificationsMuteToggle()Lcom/discord/views/CheckedSetting;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
new-instance v1, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$configureUI$1;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-direct {v1, p0, p1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$configureUI$1;-><init>(Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
check-cast v1, Lrx/functions/Action1;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/views/CheckedSetting;->setOnCheckedListener(Lrx/functions/Action1;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->getChannelSettingsNotificationsMuteToggle()Lcom/discord/views/CheckedSetting;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;->getChannel()Lcom/discord/models/domain/ModelChannel;
|
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
move-result-object v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->isTextChannel()Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
move-result v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
if-eqz v1, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-01 06:16:59 +00:00
|
|
|
const v1, 0x7f120a9a
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
const/4 v2, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;->getChannel()Lcom/discord/models/domain/ModelChannel;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->requireContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
const-string v6, "requireContext()"
|
|
|
|
|
|
|
|
invoke-static {v5, v6}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v4, v5}, Lcom/discord/utilities/channel/ChannelUtils;->getDisplayName(Lcom/discord/models/domain/ModelChannel;Landroid/content/Context;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
aput-object v4, v2, v3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {p0, v1, v2}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "it"
|
|
|
|
|
|
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
check-cast v1, Ljava/lang/CharSequence;
|
|
|
|
|
|
|
|
invoke-static {v1}, Lcom/discord/simpleast/core/a/b;->a(Ljava/lang/CharSequence;)Landroid/text/SpannableStringBuilder;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Ljava/lang/CharSequence;
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
goto :goto_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-05-01 06:16:59 +00:00
|
|
|
const v1, 0x7f120a99
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, v1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->getString(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
const-string v2, "getString(R.string.mute_category)"
|
|
|
|
|
|
|
|
invoke-static {v1, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
check-cast v1, Ljava/lang/CharSequence;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:29:01 +00:00
|
|
|
:goto_0
|
2019-02-04 20:08:30 +00:00
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/views/CheckedSetting;->setText(Ljava/lang/CharSequence;)V
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->configureNotificationRadios(Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getChannelSettingsNotificationsMuteToggle()Lcom/discord/views/CheckedSetting;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->channelSettingsNotificationsMuteToggle$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->$$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, Lcom/discord/views/CheckedSetting;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getNotificationFrequencyWrap()Landroid/view/View;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->notificationFrequencyWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->$$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, Landroid/view/View;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getNotificationSettingsRadios()Ljava/util/List;
|
|
|
|
.locals 3
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Ljava/util/List<",
|
|
|
|
"Lcom/discord/views/CheckedSetting;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->notificationSettingsRadios$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
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, Ljava/util/List;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getSystemNotificationsSettings()Landroid/view/View;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->systemNotificationsSettings$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
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, Landroid/view/View;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final getContentViewResId()I
|
|
|
|
.locals 1
|
|
|
|
|
2019-04-11 23:08:29 +00:00
|
|
|
const v0, 0x7f0d00b0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final onViewBound(Landroid/view/View;)V
|
2019-03-08 06:19:26 +00:00
|
|
|
.locals 4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-string v0, "view"
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/j;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
|
|
|
|
|
|
|
|
const/4 p1, 0x1
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->setRetainInstance(Z)V
|
|
|
|
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
const/4 v1, 0x3
|
|
|
|
|
|
|
|
invoke-static {p0, v0, p1, v1, p1}, Lcom/discord/app/AppFragment;->setActionBarDisplayHomeAsUpEnabled$default(Lcom/discord/app/AppFragment;ZLjava/lang/Integer;ILjava/lang/Object;)Landroidx/appcompat/widget/Toolbar;
|
|
|
|
|
2019-05-01 06:16:59 +00:00
|
|
|
const v1, 0x7f120b43
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {p0, v1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->setActionBarTitle(I)Lkotlin/Unit;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
new-instance v1, Lcom/discord/views/RadioManager;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->getNotificationSettingsRadios()Ljava/util/List;
|
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
move-result-object v2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-direct {v1, v2}, Lcom/discord/views/RadioManager;-><init>(Ljava/util/List;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
iput-object v1, p0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->notificationSettingsRadioManager:Lcom/discord/views/RadioManager;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->getMostRecentIntent()Landroid/content/Intent;
|
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
move-result-object v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
const-string v2, "SHOW_SYSTEM_SETTING"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
move-result v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->getSystemNotificationsSettings()Landroid/view/View;
|
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const/4 v3, 0x2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-03-08 06:19:26 +00:00
|
|
|
invoke-static {v2, v1, v0, v3, p1}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy$default(Landroid/view/View;ZIILjava/lang/Object;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final onViewBoundOrOnResume()V
|
2019-04-06 01:08:52 +00:00
|
|
|
.locals 13
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->getMostRecentIntent()Landroid/content/Intent;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "com.discord.intent.extra.EXTRA_CHANNEL_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
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->getSystemNotificationsSettings()Landroid/view/View;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
new-instance v3, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$onViewBoundOrOnResume$1;
|
|
|
|
|
|
|
|
invoke-direct {v3, p0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$onViewBoundOrOnResume$1;-><init>(Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;)V
|
|
|
|
|
|
|
|
check-cast v3, Landroid/view/View$OnClickListener;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
|
|
|
|
|
|
|
|
sget-object v2, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;->Companion:Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v0, v1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model$Companion;->get(J)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
move-object v1, p0
|
|
|
|
|
|
|
|
check-cast v1, Lcom/discord/app/AppComponent;
|
|
|
|
|
2019-04-06 01:08:52 +00:00
|
|
|
const/4 v2, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-06 01:08:52 +00:00
|
|
|
const/4 v3, 0x2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-06 01:08:52 +00:00
|
|
|
invoke-static {v0, v1, v2, v3, v2}, 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-02-04 20:08:30 +00:00
|
|
|
|
2019-04-06 01:08:52 +00:00
|
|
|
move-result-object v4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
|
2019-04-06 01:08:52 +00:00
|
|
|
move-result-object v5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$onViewBoundOrOnResume$2;
|
|
|
|
|
|
|
|
invoke-direct {v0, p0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$onViewBoundOrOnResume$2;-><init>(Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;)V
|
|
|
|
|
2019-04-06 01:08:52 +00:00
|
|
|
move-object v10, v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-06 01:08:52 +00:00
|
|
|
check-cast v10, Lkotlin/jvm/functions/Function1;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
const/4 v7, 0x0
|
|
|
|
|
2019-04-06 01:08:52 +00:00
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
const/16 v11, 0x1e
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-06 01:08:52 +00:00
|
|
|
const/4 v12, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-04-06 01:08:52 +00:00
|
|
|
invoke-static/range {v4 .. v12}, 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-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|