apkfuckery/com.discord/smali/com/discord/widgets/channels/WidgetChannelNotificationSe...

712 lines
25 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;
.super Lcom/discord/app/AppFragment;
.source "WidgetChannelNotificationSettings.kt"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;,
Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$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/channels/WidgetChannelNotificationSettings$Companion;
2019-12-06 03:29:40 +00:00
.field public static final INTENT_SHOW_SYSTEM_SETTINGS:Ljava/lang/String; = "SHOW_SYSTEM_SETTING"
2019-07-24 11:27:29 +00:00
# instance fields
2019-12-06 03:29:40 +00:00
.field public final notificationFrequencyWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final notificationMuteSettingsView$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-11-21 23:22:50 +00:00
2019-12-06 03:29:40 +00:00
.field public notificationSettingsRadioManager:Lcom/discord/views/RadioManager;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final notificationSettingsRadios$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final systemNotificationsSettings$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, 0x4
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/channels/WidgetChannelNotificationSettings;
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, "notificationMuteSettingsView"
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v4, "getNotificationMuteSettingsView()Lcom/discord/widgets/servers/NotificationMuteSettingsView;"
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/channels/WidgetChannelNotificationSettings;
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-08-30 20:04:20 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
const-string v4, "notificationFrequencyWrap"
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
const-string v5, "getNotificationFrequencyWrap()Landroid/view/View;"
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
const/4 v1, 0x2
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/channels/WidgetChannelNotificationSettings;
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-08-30 20:04:20 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
const-string v4, "notificationSettingsRadios"
2019-07-24 11:27:29 +00:00
2019-08-30 20:04:20 +00:00
const-string v5, "getNotificationSettingsRadios()Ljava/util/List;"
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
const/4 v1, 0x3
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/channels/WidgetChannelNotificationSettings;
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, "systemNotificationsSettings"
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v5, "getSystemNotificationsSettings()Landroid/view/View;"
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/channels/WidgetChannelNotificationSettings;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
2019-07-24 11:27:29 +00:00
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
2020-02-20 23:34:33 +00:00
const v0, 0x7f0a014b
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
2019-11-21 23:22:50 +00:00
iput-object v0, p0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->notificationMuteSettingsView$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
2020-02-20 23:34:33 +00:00
const v0, 0x7f0a017b
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/channels/WidgetChannelNotificationSettings;->notificationFrequencyWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
const/4 v0, 0x3
new-array v0, v0, [I
fill-array-data v0, :array_0
2020-02-20 19:33:18 +00:00
invoke-static {p0, v0}, Lx/a/a2/w;->a(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/channels/WidgetChannelNotificationSettings;->notificationSettingsRadios$delegate:Lkotlin/properties/ReadOnlyProperty;
2020-02-20 23:34:33 +00:00
const v0, 0x7f0a014a
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/channels/WidgetChannelNotificationSettings;->systemNotificationsSettings$delegate:Lkotlin/properties/ReadOnlyProperty;
return-void
nop
:array_0
.array-data 4
2020-02-20 23:34:33 +00:00
0x7f0a0178
0x7f0a0179
0x7f0a017a
2019-07-24 11:27:29 +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$getNotificationSettingsRadioManager$p(Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;)Lcom/discord/views/RadioManager;
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/channels/WidgetChannelNotificationSettings;->notificationSettingsRadioManager:Lcom/discord/views/RadioManager;
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, "notificationSettingsRadioManager"
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$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
.locals 7
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
2019-11-21 23:22:50 +00:00
invoke-virtual {p1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;->isGuildMuted()Z
2019-07-24 11:27:29 +00:00
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
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
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;
invoke-interface {v1, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/discord/views/CheckedSetting;
2019-11-28 00:30:53 +00:00
sget v4, Lcom/discord/models/domain/ModelNotificationSettings;->FREQUENCY_ALL:I
2019-07-24 11:27:29 +00:00
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
2019-11-28 00:30:53 +00:00
sget v2, Lcom/discord/models/domain/ModelNotificationSettings;->FREQUENCY_MENTIONS:I
2019-07-24 11:27:29 +00:00
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
2019-11-28 00:30:53 +00:00
sget v2, Lcom/discord/models/domain/ModelNotificationSettings;->FREQUENCY_NOTHING:I
2019-07-24 11:27:29 +00:00
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
2019-12-12 08:58:10 +00:00
.locals 17
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
move-object/from16 v0, p0
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
move-object/from16 v1, p1
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;->getChannel()Lcom/discord/models/domain/ModelChannel;
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual/range {p0 .. p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
const-string v4, "requireContext()"
2019-11-15 02:21:15 +00:00
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-11-15 02:21:15 +00:00
const/4 v5, 0x0
2019-11-21 23:22:50 +00:00
const/4 v6, 0x2
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
const/4 v7, 0x0
invoke-static {v2, v3, v7, v6, v5}, Lcom/discord/utilities/channel/ChannelUtils;->getDisplayName$default(Lcom/discord/models/domain/ModelChannel;Landroid/content/Context;ZILjava/lang/Object;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v2}, Lcom/discord/app/AppFragment;->setActionBarSubtitle(Ljava/lang/CharSequence;)Lkotlin/Unit;
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;->getChannel()Lcom/discord/models/domain/ModelChannel;
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
invoke-virtual {v2}, Lcom/discord/models/domain/ModelChannel;->isTextChannel()Z
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
move-result v2
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
const/4 v3, 0x1
2019-07-24 11:27:29 +00:00
2020-02-24 20:20:24 +00:00
const v8, 0x7f120c95
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
if-eqz v2, :cond_0
2019-07-24 11:27:29 +00:00
2020-02-24 20:20:24 +00:00
const v2, 0x7f120c96
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
new-array v9, v3, [Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;->getChannel()Lcom/discord/models/domain/ModelChannel;
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
move-result-object v10
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual/range {p0 .. p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
move-result-object v11
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v11, v4}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
invoke-static {v10, v11, v7, v6, v5}, Lcom/discord/utilities/channel/ChannelUtils;->getDisplayName$default(Lcom/discord/models/domain/ModelChannel;Landroid/content/Context;ZILjava/lang/Object;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
move-result-object v10
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
aput-object v10, v9, v7
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v2, v9}, Landroidx/fragment/app/Fragment;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
:cond_0
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v8}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
:goto_0
2019-12-12 08:58:10 +00:00
move-object v12, v2
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
const-string v2, "if (channel.isTextChanne\u2026g(R.string.mute_category)"
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v12, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;->getChannel()Lcom/discord/models/domain/ModelChannel;
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
move-result-object v9
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
invoke-virtual {v9}, Lcom/discord/models/domain/ModelChannel;->isTextChannel()Z
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
move-result v9
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
if-eqz v9, :cond_1
2019-07-24 11:27:29 +00:00
2020-02-24 20:20:24 +00:00
const v8, 0x7f121366
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
new-array v3, v3, [Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;->getChannel()Lcom/discord/models/domain/ModelChannel;
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
move-result-object v9
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual/range {p0 .. p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
move-result-object v10
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v10, v4}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
invoke-static {v9, v10, v7, v6, v5}, Lcom/discord/utilities/channel/ChannelUtils;->getDisplayName$default(Lcom/discord/models/domain/ModelChannel;Landroid/content/Context;ZILjava/lang/Object;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
move-result-object v4
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
aput-object v4, v3, v7
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v8, v3}, Landroidx/fragment/app/Fragment;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
goto :goto_1
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
:cond_1
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v8}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-21 23:22:50 +00:00
move-result-object v3
:goto_1
2019-12-12 08:58:10 +00:00
move-object v13, v3
2019-11-21 23:22:50 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {v13, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-11-21 23:22:50 +00:00
new-instance v2, Lcom/discord/widgets/servers/NotificationMuteSettingsView$ViewState;
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;->getChannelIsMuted()Z
2019-12-12 08:58:10 +00:00
move-result v10
2019-11-21 23:22:50 +00:00
invoke-virtual/range {p1 .. p1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;->getChannelMuteEndTime()Ljava/lang/String;
2019-12-12 08:58:10 +00:00
move-result-object v11
2019-11-21 23:22:50 +00:00
2020-02-24 20:20:24 +00:00
const v3, 0x7f120645
2019-11-21 23:22:50 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v3}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
2019-11-21 23:22:50 +00:00
2019-12-12 08:58:10 +00:00
move-result-object v14
2019-11-21 23:22:50 +00:00
const-string v3, "getString(R.string.form_\u2026bel_mobile_channel_muted)"
2020-02-20 19:33:18 +00:00
invoke-static {v14, v3}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-11-21 23:22:50 +00:00
2020-02-24 20:20:24 +00:00
const v15, 0x7f120646
2019-11-21 23:22:50 +00:00
2020-02-24 20:20:24 +00:00
const v3, 0x7f120649
2019-11-21 23:22:50 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v3}, Landroidx/fragment/app/Fragment;->getString(I)Ljava/lang/String;
2019-11-21 23:22:50 +00:00
2019-12-12 08:58:10 +00:00
move-result-object v16
2019-11-21 23:22:50 +00:00
move-object v9, v2
2019-12-12 08:58:10 +00:00
invoke-direct/range {v9 .. v16}, Lcom/discord/widgets/servers/NotificationMuteSettingsView$ViewState;-><init>(ZLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;)V
2019-11-21 23:22:50 +00:00
new-instance v3, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$configureUI$onMute$1;
invoke-direct {v3, v0, v1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$configureUI$onMute$1;-><init>(Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;)V
new-instance v4, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$configureUI$onUnmute$1;
invoke-direct {v4, v0, v1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$configureUI$onUnmute$1;-><init>(Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;)V
invoke-direct/range {p0 .. p0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->getNotificationMuteSettingsView()Lcom/discord/widgets/servers/NotificationMuteSettingsView;
2019-12-12 08:58:10 +00:00
move-result-object v5
2019-11-21 23:22:50 +00:00
2019-12-12 08:58:10 +00:00
invoke-virtual {v5, v2, v3, v4}, Lcom/discord/widgets/servers/NotificationMuteSettingsView;->updateView(Lcom/discord/widgets/servers/NotificationMuteSettingsView$ViewState;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function0;)V
2019-11-21 23:22:50 +00:00
invoke-direct/range {p0 .. p1}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->configureNotificationRadios(Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$Model;)V
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-11-21 23:22:50 +00:00
.method private final getNotificationFrequencyWrap()Landroid/view/View;
2019-07-24 11:27:29 +00:00
.locals 3
2019-11-21 23:22:50 +00:00
iget-object v0, p0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->notificationFrequencyWrap$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
sget-object v1, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
2019-11-21 23:22:50 +00:00
const/4 v2, 0x1
2019-07-24 11:27:29 +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;
move-result-object v0
2019-11-21 23:22:50 +00:00
check-cast v0, Landroid/view/View;
2019-07-24 11:27:29 +00:00
return-object v0
.end method
2019-11-21 23:22:50 +00:00
.method private final getNotificationMuteSettingsView()Lcom/discord/widgets/servers/NotificationMuteSettingsView;
2019-07-24 11:27:29 +00:00
.locals 3
2019-11-21 23:22:50 +00:00
iget-object v0, p0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->notificationMuteSettingsView$delegate:Lkotlin/properties/ReadOnlyProperty;
2019-07-24 11:27:29 +00:00
sget-object v1, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
2019-11-21 23:22:50 +00:00
const/4 v2, 0x0
2019-07-24 11:27:29 +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;
move-result-object v0
2019-11-21 23:22:50 +00:00
check-cast v0, Lcom/discord/widgets/servers/NotificationMuteSettingsView;
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
.method public getContentViewResId()I
2019-07-24 11:27:29 +00:00
.locals 1
2020-02-29 02:28:15 +00:00
const v0, 0x7f0d012f
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
2019-07-24 11:27:29 +00:00
.locals 4
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_0
2019-07-24 11:27:29 +00:00
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
const/4 p1, 0x1
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p1}, Landroidx/fragment/app/Fragment;->setRetainInstance(Z)V
2019-07-24 11:27:29 +00:00
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-02-24 20:20:24 +00:00
const p1, 0x7f120d58
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
2019-12-06 03:29:40 +00:00
new-instance p1, Lcom/discord/views/RadioManager;
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->getNotificationSettingsRadios()Ljava/util/List;
move-result-object v2
2019-12-06 03:29:40 +00:00
invoke-direct {p1, v2}, Lcom/discord/views/RadioManager;-><init>(Ljava/util/List;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iput-object p1, p0, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->notificationSettingsRadioManager:Lcom/discord/views/RadioManager;
2019-07-24 11:27:29 +00:00
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
2019-12-06 03:29:40 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
const-string v2, "SHOW_SYSTEM_SETTING"
2019-12-06 03:29:40 +00:00
invoke-virtual {p1, v2, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result p1
2019-07-24 11:27:29 +00:00
invoke-direct {p0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;->getSystemNotificationsSettings()Landroid/view/View;
move-result-object v2
const/4 v3, 0x2
2019-12-06 03:29:40 +00:00
invoke-static {v2, p1, v1, v3, v0}, Lcom/discord/utilities/view/extensions/ViewExtensions;->setVisibilityBy$default(Landroid/view/View;ZIILjava/lang/Object;)V
2019-07-24 11:27:29 +00:00
return-void
2019-12-06 03:29:40 +00:00
:cond_0
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_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
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
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/channels/WidgetChannelNotificationSettings;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-instance v9, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$onViewBoundOrOnResume$2;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v9, p0}, Lcom/discord/widgets/channels/WidgetChannelNotificationSettings$onViewBoundOrOnResume$2;-><init>(Lcom/discord/widgets/channels/WidgetChannelNotificationSettings;)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