ChannelSettingActivity.smali
.class public final Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;
.super Lcom/imo/android/imoim/activities/IMOActivity;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity$a;
}
.end annotation
# static fields
.field static final synthetic a:[Lkotlin/k/g;
.field public static final b:Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity$a;
# instance fields
.field private final c:Lkotlin/f;
.field private d:Ljava/lang/String;
.field private e:Lcom/imo/android/imoim/publicchannel/ad;
.field private f:Ljava/lang/String;
.field private g:Z
.field private h:Z
.field private i:Ljava/util/HashMap;
# direct methods
.method static constructor <clinit>()V
.registers 5
const/4 v0, 0x1
new-array v0, v0, [Lkotlin/k/g;
new-instance v1, Lkotlin/f/b/z;
const-class v2, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;
invoke-static {v2}, Lkotlin/f/b/ab;->a(Ljava/lang/Class;)Lkotlin/k/b;
move-result-object v2
const-string v3, "channelViewModel"
const-string v4, "getChannelViewModel()Lcom/imo/android/imoim/publicchannel/ChannelViewModel;"
invoke-direct {v1, v2, v3, v4}, Lkotlin/f/b/z;-><init>(Lkotlin/k/c;Ljava/lang/String;Ljava/lang/String;)V
invoke-static {v1}, Lkotlin/f/b/ab;->a(Lkotlin/f/b/y;)Lkotlin/k/j;
move-result-object v1
check-cast v1, Lkotlin/k/g;
const/4 v2, 0x0
aput-object v1, v0, v2
sput-object v0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->a:[Lkotlin/k/g;
new-instance v0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity$a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity$a;-><init>(Lkotlin/f/b/j;)V
sput-object v0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->b:Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity$a;
return-void
.end method
.method public constructor <init>()V
.registers 2
.line 24
invoke-direct {p0}, Lcom/imo/android/imoim/activities/IMOActivity;-><init>()V
.line 46
new-instance v0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity$b;
invoke-direct {v0, p0}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity$b;-><init>(Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;)V
check-cast v0, Lkotlin/f/a/a;
invoke-static {v0}, Lkotlin/g;->a(Lkotlin/f/a/a;)Lkotlin/f;
move-result-object v0
iput-object v0, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->c:Lkotlin/f;
.line 51
sget-object v0, Lcom/imo/android/imoim/publicchannel/ad;->UN_KNOW:Lcom/imo/android/imoim/publicchannel/ad;
iput-object v0, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->e:Lcom/imo/android/imoim/publicchannel/ad;
const/4 v0, 0x1
.line 54
iput-boolean v0, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->h:Z
return-void
.end method
.method private a(I)Landroid/view/View;
.registers 4
iget-object v0, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->i:Ljava/util/HashMap;
if-nez v0, :cond_b
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
iput-object v0, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->i:Ljava/util/HashMap;
:cond_b
iget-object v0, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->i:Ljava/util/HashMap;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/view/View;
if-nez v0, :cond_26
invoke-virtual {p0, p1}, Landroidx/fragment/app/FragmentActivity;->findViewById(I)Landroid/view/View;
move-result-object v0
iget-object v1, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->i:Ljava/util/HashMap;
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
invoke-virtual {v1, p1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
:cond_26
return-object v0
.end method
.method private final a()Lcom/imo/android/imoim/publicchannel/ChannelViewModel;
.registers 2
iget-object v0, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->c:Lkotlin/f;
invoke-interface {v0}, Lkotlin/f;->getValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/imo/android/imoim/publicchannel/ChannelViewModel;
return-object v0
.end method
.method public static final synthetic a(Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;Ljava/lang/String;)V
.registers 3
const/4 v0, 0x0
.line 1132
invoke-direct {p0, p1, v0}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->a(Ljava/lang/String;Z)V
return-void
.end method
.method public static final synthetic a(Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;Z)V
.registers 2
.line 24
iput-boolean p1, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->g:Z
return-void
.end method
.method private final a(Ljava/lang/String;Z)V
.registers 6
.line 136
new-instance v0, Lcom/imo/android/imoim/publicchannel/h/i$a;
iget-object v1, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->d:Ljava/lang/String;
iget-object v2, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->e:Lcom/imo/android/imoim/publicchannel/ad;
invoke-direct {v0, v1, v2}, Lcom/imo/android/imoim/publicchannel/h/i$a;-><init>(Ljava/lang/String;Lcom/imo/android/imoim/publicchannel/ad;)V
if-eqz p2, :cond_18
.line 138
iget-object p2, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->d:Ljava/lang/String;
invoke-static {p2}, Lcom/imo/android/imoim/publicchannel/post/d;->g(Ljava/lang/String;)Lcom/imo/android/imoim/publicchannel/post/ac;
move-result-object p2
if-eqz p2, :cond_18
.line 139
iget-object p2, p2, Lcom/imo/android/imoim/publicchannel/post/ac;->k:Ljava/lang/String;
invoke-virtual {v0, p2}, Lcom/imo/android/imoim/publicchannel/h/i$a;->h(Ljava/lang/String;)V
.line 142
:cond_18
sget-object p2, Lcom/imo/android/imoim/publicchannel/h/i;->a:Lcom/imo/android/imoim/publicchannel/h/i;
invoke-static {p1, v0}, Lcom/imo/android/imoim/publicchannel/h/i;->a(Ljava/lang/String;Lcom/imo/android/imoim/publicchannel/h/i$a;)V
return-void
.end method
.method public static final synthetic a(Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;)Z
.registers 1
.line 24
iget-boolean p0, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->g:Z
return p0
.end method
.method public static final synthetic b(Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;)Lcom/imo/android/imoim/publicchannel/ChannelViewModel;
.registers 1
.line 24
invoke-direct {p0}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->a()Lcom/imo/android/imoim/publicchannel/ChannelViewModel;
move-result-object p0
return-object p0
.end method
.method public static final synthetic b(Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;Ljava/lang/String;)V
.registers 3
const/4 v0, 0x1
.line 24
invoke-direct {p0, p1, v0}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->a(Ljava/lang/String;Z)V
return-void
.end method
.method public static final synthetic c(Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;)Ljava/lang/String;
.registers 1
.line 24
iget-object p0, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->f:Ljava/lang/String;
return-object p0
.end method
.method public static final synthetic d(Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;)Ljava/lang/String;
.registers 1
.line 24
iget-object p0, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->d:Ljava/lang/String;
return-object p0
.end method
# virtual methods
.method public final onBackPressed()V
.registers 4
.line 125
new-instance v0, Landroid/content/Intent;
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
.line 126
iget-boolean v1, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->g:Z
const-string v2, "mute"
invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;
const/16 v1, 0x21
.line 125
invoke-virtual {p0, v1, v0}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->setResult(ILandroid/content/Intent;)V
.line 128
invoke-virtual {p0}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->finish()V
return-void
.end method
.method public final onCreate(Landroid/os/Bundle;)V
.registers 5
.line 57
invoke-super {p0, p1}, Lcom/imo/android/imoim/activities/IMOActivity;->onCreate(Landroid/os/Bundle;)V
const p1, 0x77050002
.line 58
invoke-virtual {p0, p1}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->setContentView(I)V
.line 59
sget p1, Lcom/imo/android/imoim/publicchannel/ar$a;->back:I
invoke-direct {p0, p1}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->a(I)Landroid/view/View;
move-result-object p1
check-cast p1, Lcom/imo/xui/widget/image/XImageView;
new-instance v0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity$c;
invoke-direct {v0, p0}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity$c;-><init>(Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;)V
check-cast v0, Landroid/view/View$OnClickListener;
invoke-virtual {p1, v0}, Lcom/imo/xui/widget/image/XImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 60
invoke-virtual {p0}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->getIntent()Landroid/content/Intent;
move-result-object p1
const-string v0, ""
if-eqz p1, :cond_2b
const-string v1, "channel_id"
invoke-virtual {p1, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
if-nez p1, :cond_2c
:cond_2b
move-object p1, v0
:cond_2c
iput-object p1, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->d:Ljava/lang/String;
.line 61
invoke-virtual {p0}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->getIntent()Landroid/content/Intent;
move-result-object p1
if-eqz p1, :cond_3c
const-string v1, "channel_type"
invoke-virtual {p1, v1}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;
move-result-object p1
if-nez p1, :cond_40
:cond_3c
sget-object p1, Lcom/imo/android/imoim/publicchannel/ad;->UN_KNOW:Lcom/imo/android/imoim/publicchannel/ad;
check-cast p1, Ljava/io/Serializable;
.line 62
:cond_40
instance-of v1, p1, Lcom/imo/android/imoim/publicchannel/ad;
if-eqz v1, :cond_48
.line 63
check-cast p1, Lcom/imo/android/imoim/publicchannel/ad;
iput-object p1, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->e:Lcom/imo/android/imoim/publicchannel/ad;
.line 65
:cond_48
invoke-virtual {p0}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->getIntent()Landroid/content/Intent;
move-result-object p1
if-eqz p1, :cond_58
const-string v1, "channel_display"
invoke-virtual {p1, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
if-nez p1, :cond_57
goto :goto_58
:cond_57
move-object v0, p1
:cond_58
:goto_58
iput-object v0, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->f:Ljava/lang/String;
.line 66
invoke-virtual {p0}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->getIntent()Landroid/content/Intent;
move-result-object p1
const/4 v0, 0x0
if-eqz p1, :cond_68
const-string v1, "mute"
invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z
move-result p1
goto :goto_69
:cond_68
const/4 p1, 0x0
:goto_69
iput-boolean p1, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->g:Z
.line 67
invoke-virtual {p0}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->getIntent()Landroid/content/Intent;
move-result-object p1
if-eqz p1, :cond_7a
iget-boolean v1, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->h:Z
const-string v2, "unsubscribe_enabled"
invoke-virtual {p1, v2, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z
move-result p1
goto :goto_7c
:cond_7a
iget-boolean p1, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->h:Z
:goto_7c
iput-boolean p1, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->h:Z
.line 69
invoke-direct {p0}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->a()Lcom/imo/android/imoim/publicchannel/ChannelViewModel;
move-result-object p1
iget-object v1, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->d:Ljava/lang/String;
invoke-virtual {p1, v1}, Lcom/imo/android/imoim/publicchannel/ChannelViewModel;->a(Ljava/lang/String;)V
.line 70
sget p1, Lcom/imo/android/imoim/publicchannel/ar$a;->mute:I
invoke-direct {p0, p1}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->a(I)Landroid/view/View;
move-result-object p1
check-cast p1, Lcom/imo/xui/widget/item/XItemView;
iget-boolean v1, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->g:Z
invoke-virtual {p1, v1}, Lcom/imo/xui/widget/item/XItemView;->setChecked(Z)V
.line 71
sget p1, Lcom/imo/android/imoim/publicchannel/ar$a;->mute:I
invoke-direct {p0, p1}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->a(I)Landroid/view/View;
move-result-object p1
check-cast p1, Lcom/imo/xui/widget/item/XItemView;
new-instance v1, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity$d;
invoke-direct {v1, p0}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity$d;-><init>(Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;)V
check-cast v1, Landroid/widget/CompoundButton$OnCheckedChangeListener;
invoke-virtual {p1, v1}, Lcom/imo/xui/widget/item/XItemView;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V
.line 78
invoke-static {}, Lcom/imo/android/imoim/util/ei;->cx()Z
.line 88
sget p1, Lcom/imo/android/imoim/publicchannel/ar$a;->un_follow:I
invoke-direct {p0, p1}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->a(I)Landroid/view/View;
move-result-object p1
check-cast p1, Landroid/widget/TextView;
new-instance v1, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity$e;
invoke-direct {v1, p0}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity$e;-><init>(Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;)V
check-cast v1, Landroid/view/View$OnClickListener;
invoke-virtual {p1, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 117
iget-boolean p1, p0, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->h:Z
if-eqz p1, :cond_cb
.line 118
sget p1, Lcom/imo/android/imoim/publicchannel/ar$a;->un_follow:I
invoke-direct {p0, p1}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->a(I)Landroid/view/View;
move-result-object p1
check-cast p1, Landroid/widget/TextView;
invoke-static {p1, v0}, Lcom/imo/android/imoim/util/en;->a(Landroid/view/View;I)V
return-void
.line 120
:cond_cb
sget p1, Lcom/imo/android/imoim/publicchannel/ar$a;->un_follow:I
invoke-direct {p0, p1}, Lcom/imo/android/imoim/publicchannel/profile/ChannelSettingActivity;->a(I)Landroid/view/View;
move-result-object p1
check-cast p1, Landroid/widget/TextView;
const/16 v0, 0x8
invoke-static {p1, v0}, Lcom/imo/android/imoim/util/en;->a(Landroid/view/View;I)V
return-void
.end method