2356 lines
72 KiB
Smali
2356 lines
72 KiB
Smali
.class public Lcom/moji/redpoint/RedPointManager;
|
|
.super Ljava/lang/Object;
|
|
.source "RedPointManager.java"
|
|
|
|
|
|
# static fields
|
|
.field public static a:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lcom/moji/http/message/bean/NewMessageCount$ModuleRedPoint;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private static d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
.field private static e:Landroid/content/Context;
|
|
|
|
.field private static volatile h:Lcom/moji/redpoint/RedPointManager;
|
|
|
|
|
|
# instance fields
|
|
.field public b:Z
|
|
|
|
.field c:Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
.field private f:Z
|
|
|
|
.field private g:I
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 50
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 56
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 51
|
|
iput-boolean v0, p0, Lcom/moji/redpoint/RedPointManager;->f:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/redpoint/RedPointManager;)I
|
|
.locals 0
|
|
|
|
.line 44
|
|
iget p0, p0, Lcom/moji/redpoint/RedPointManager;->g:I
|
|
|
|
return p0
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/redpoint/RedPointManager;I)I
|
|
.locals 0
|
|
|
|
.line 44
|
|
iput p1, p0, Lcom/moji/redpoint/RedPointManager;->g:I
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public static a()Lcom/moji/redpoint/RedPointManager;
|
|
.locals 2
|
|
|
|
.line 62
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->h:Lcom/moji/redpoint/RedPointManager;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 63
|
|
const-class v0, Lcom/moji/redpoint/RedPointManager;
|
|
|
|
monitor-enter v0
|
|
|
|
.line 64
|
|
:try_start_0
|
|
sget-object v1, Lcom/moji/redpoint/RedPointManager;->h:Lcom/moji/redpoint/RedPointManager;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 65
|
|
new-instance v1, Lcom/moji/redpoint/RedPointManager;
|
|
|
|
invoke-direct {v1}, Lcom/moji/redpoint/RedPointManager;-><init>()V
|
|
|
|
sput-object v1, Lcom/moji/redpoint/RedPointManager;->h:Lcom/moji/redpoint/RedPointManager;
|
|
|
|
.line 67
|
|
:cond_0
|
|
monitor-exit v0
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw v1
|
|
|
|
.line 69
|
|
:cond_1
|
|
:goto_0
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->h:Lcom/moji/redpoint/RedPointManager;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method private a(Lcom/moji/http/ugc/bean/AvatarRedPointResp;)V
|
|
.locals 4
|
|
|
|
.line 118
|
|
sput-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
.line 123
|
|
iget-object p1, p0, Lcom/moji/redpoint/RedPointManager;->c:Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 124
|
|
new-instance p1, Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
invoke-direct {p1}, Lcom/moji/preferences/ProcessPrefer;-><init>()V
|
|
|
|
iput-object p1, p0, Lcom/moji/redpoint/RedPointManager;->c:Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
.line 126
|
|
:cond_0
|
|
iget-object p1, p0, Lcom/moji/redpoint/RedPointManager;->c:Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
sget-object v0, Lcom/moji/preferences/ProcessPrefer$KeyConstant;->RED_POINT_LAST_CLICK_TIME:Lcom/moji/preferences/ProcessPrefer$KeyConstant;
|
|
|
|
const-wide/16 v1, 0x0
|
|
|
|
invoke-virtual {p1, v0, v1, v2}, Lcom/moji/preferences/ProcessPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;J)J
|
|
|
|
move-result-wide v0
|
|
|
|
.line 127
|
|
new-instance p1, Lcom/moji/http/message/NewMsgCountRequest;
|
|
|
|
iget v2, p0, Lcom/moji/redpoint/RedPointManager;->g:I
|
|
|
|
invoke-direct {p0}, Lcom/moji/redpoint/RedPointManager;->l()Z
|
|
|
|
move-result v3
|
|
|
|
invoke-direct {p1, v2, v3, v0, v1}, Lcom/moji/http/message/NewMsgCountRequest;-><init>(IZJ)V
|
|
|
|
.line 128
|
|
new-instance v0, Lcom/moji/redpoint/RedPointManager$1;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/redpoint/RedPointManager$1;-><init>(Lcom/moji/redpoint/RedPointManager;)V
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/http/message/NewMsgCountRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/redpoint/RedPointManager;J)V
|
|
.locals 0
|
|
|
|
.line 44
|
|
invoke-direct {p0, p1, p2}, Lcom/moji/redpoint/RedPointManager;->b(J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/redpoint/RedPointManager;Lcom/moji/http/ugc/bean/AvatarRedPointResp;)V
|
|
.locals 0
|
|
|
|
.line 44
|
|
invoke-direct {p0, p1}, Lcom/moji/redpoint/RedPointManager;->a(Lcom/moji/http/ugc/bean/AvatarRedPointResp;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method static synthetic a(Lcom/moji/redpoint/RedPointManager;Ljava/util/List;)V
|
|
.locals 0
|
|
|
|
.line 44
|
|
invoke-direct {p0, p1}, Lcom/moji/redpoint/RedPointManager;->a(Ljava/util/List;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Ljava/util/List;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/List<",
|
|
"Lcom/moji/http/message/bean/NewMessageCount$ModuleRedPoint;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 731
|
|
sput-object p1, Lcom/moji/redpoint/RedPointManager;->a:Ljava/util/List;
|
|
|
|
.line 733
|
|
invoke-static {}, Lorg/greenrobot/eventbus/EventBus;->a()Lorg/greenrobot/eventbus/EventBus;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v0, Lcom/moji/redpoint/NewLiveModuleEvent;
|
|
|
|
invoke-direct {v0}, Lcom/moji/redpoint/NewLiveModuleEvent;-><init>()V
|
|
|
|
invoke-virtual {p1, v0}, Lorg/greenrobot/eventbus/EventBus;->d(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private b(J)V
|
|
.locals 3
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v2, p1, v0
|
|
|
|
if-lez v2, :cond_1
|
|
|
|
.line 720
|
|
iget-object v0, p0, Lcom/moji/redpoint/RedPointManager;->c:Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 721
|
|
new-instance v0, Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
invoke-direct {v0}, Lcom/moji/preferences/ProcessPrefer;-><init>()V
|
|
|
|
iput-object v0, p0, Lcom/moji/redpoint/RedPointManager;->c:Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
.line 723
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/moji/redpoint/RedPointManager;->c:Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
sget-object v1, Lcom/moji/preferences/ProcessPrefer$KeyConstant;->RED_POINT_LAST_CLICK_TIME:Lcom/moji/preferences/ProcessPrefer$KeyConstant;
|
|
|
|
invoke-virtual {v0, v1, p1, p2}, Lcom/moji/preferences/ProcessPrefer;->b(Lcom/moji/tool/preferences/core/IPreferKey;J)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method private b(I)Z
|
|
.locals 2
|
|
|
|
.line 194
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 195
|
|
invoke-direct {p0, p1}, Lcom/moji/redpoint/RedPointManager;->c(I)V
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
packed-switch p1, :pswitch_data_0
|
|
|
|
:pswitch_0
|
|
goto/16 :goto_0
|
|
|
|
.line 307
|
|
:pswitch_1
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget p1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->redpoint_pd_flag:I
|
|
|
|
if-lez p1, :cond_2
|
|
|
|
.line 308
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->redpoint_pd_flag:I
|
|
|
|
return v0
|
|
|
|
.line 301
|
|
:pswitch_2
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget p1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->attention_count:I
|
|
|
|
if-lez p1, :cond_2
|
|
|
|
.line 302
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->attention_count:I
|
|
|
|
return v0
|
|
|
|
.line 295
|
|
:pswitch_3
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget p1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->feedback_count:I
|
|
|
|
if-lez p1, :cond_2
|
|
|
|
.line 296
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->feedback_count:I
|
|
|
|
return v0
|
|
|
|
.line 289
|
|
:pswitch_4
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget p1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_xiaomo_count:I
|
|
|
|
if-lez p1, :cond_2
|
|
|
|
.line 290
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_xiaomo_count:I
|
|
|
|
return v0
|
|
|
|
.line 282
|
|
:pswitch_5
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget p1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->friendtrends_count:I
|
|
|
|
if-gtz p1, :cond_1
|
|
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget p1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_friendtrends_count:I
|
|
|
|
if-lez p1, :cond_2
|
|
|
|
.line 283
|
|
:cond_1
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->friendtrends_count:I
|
|
|
|
.line 284
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_friendtrends_count:I
|
|
|
|
return v0
|
|
|
|
.line 264
|
|
:pswitch_6
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget p1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_feedstream_count:I
|
|
|
|
if-lez p1, :cond_2
|
|
|
|
.line 265
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_feedstream_count:I
|
|
|
|
return v0
|
|
|
|
.line 244
|
|
:pswitch_7
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget p1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_topic_count:I
|
|
|
|
if-lez p1, :cond_2
|
|
|
|
.line 245
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_topic_count:I
|
|
|
|
return v0
|
|
|
|
.line 238
|
|
:pswitch_8
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget p1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->shop_product_count:I
|
|
|
|
if-lez p1, :cond_2
|
|
|
|
.line 239
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->shop_product_count:I
|
|
|
|
return v0
|
|
|
|
.line 230
|
|
:pswitch_9
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget p1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->app_store_count:I
|
|
|
|
if-lez p1, :cond_2
|
|
|
|
.line 231
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->app_store_count:I
|
|
|
|
return v0
|
|
|
|
.line 224
|
|
:pswitch_a
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget p1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->dress_helper_count:I
|
|
|
|
if-lez p1, :cond_2
|
|
|
|
.line 225
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->dress_helper_count:I
|
|
|
|
return v0
|
|
|
|
.line 212
|
|
:pswitch_b
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget p1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_picpraise_count:I
|
|
|
|
if-lez p1, :cond_2
|
|
|
|
.line 213
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_picpraise_count:I
|
|
|
|
return v0
|
|
|
|
.line 206
|
|
:pswitch_c
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget p1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_piccomment_count:I
|
|
|
|
if-lez p1, :cond_2
|
|
|
|
.line 207
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_piccomment_count:I
|
|
|
|
return v0
|
|
|
|
.line 200
|
|
:pswitch_d
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget p1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_xiaomo_count:I
|
|
|
|
if-lez p1, :cond_2
|
|
|
|
.line 201
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, p1, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_xiaomo_count:I
|
|
|
|
return v0
|
|
|
|
:cond_2
|
|
:goto_0
|
|
:pswitch_e
|
|
return v1
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_d
|
|
:pswitch_c
|
|
:pswitch_b
|
|
:pswitch_e
|
|
:pswitch_e
|
|
:pswitch_e
|
|
:pswitch_a
|
|
:pswitch_9
|
|
:pswitch_e
|
|
:pswitch_8
|
|
:pswitch_7
|
|
:pswitch_0
|
|
:pswitch_e
|
|
:pswitch_0
|
|
:pswitch_6
|
|
:pswitch_0
|
|
:pswitch_0
|
|
:pswitch_5
|
|
:pswitch_4
|
|
:pswitch_0
|
|
:pswitch_0
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method private c(I)V
|
|
.locals 4
|
|
|
|
const/4 v0, 0x7
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eq p1, v0, :cond_6
|
|
|
|
const/16 v0, 0xf
|
|
|
|
if-eq p1, v0, :cond_5
|
|
|
|
const/16 v0, 0x16
|
|
|
|
if-eq p1, v0, :cond_4
|
|
|
|
packed-switch p1, :pswitch_data_0
|
|
|
|
packed-switch p1, :pswitch_data_1
|
|
|
|
packed-switch p1, :pswitch_data_2
|
|
|
|
goto/16 :goto_2
|
|
|
|
.line 367
|
|
:pswitch_0
|
|
new-instance p1, Lcom/moji/badge/BadgePreference;
|
|
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
invoke-direct {p1, v0}, Lcom/moji/badge/BadgePreference;-><init>(Landroid/content/Context;)V
|
|
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_MINE:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/badge/BadgePreference;->a(Lcom/moji/badge/BadgeEvent$TYPE;)I
|
|
|
|
move-result p1
|
|
|
|
.line 368
|
|
new-instance v0, Lcom/moji/badge/BadgePreference;
|
|
|
|
sget-object v2, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
invoke-direct {v0, v2}, Lcom/moji/badge/BadgePreference;-><init>(Landroid/content/Context;)V
|
|
|
|
sget-object v2, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-virtual {v0, v2}, Lcom/moji/badge/BadgePreference;->a(Lcom/moji/badge/BadgeEvent$TYPE;)I
|
|
|
|
move-result v0
|
|
|
|
.line 369
|
|
sget-object v2, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_MINE:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v2, v3, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 370
|
|
sget-object v2, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_MINE:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v2}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 372
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1, v0, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sub-int/2addr v0, p1
|
|
|
|
if-lez v0, :cond_1
|
|
|
|
.line 375
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v1, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1, v1, v0}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 377
|
|
:cond_1
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1, v0, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 380
|
|
:goto_0
|
|
sget-object p1, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
goto/16 :goto_2
|
|
|
|
.line 363
|
|
:pswitch_1
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_XIAOMO_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1, v0, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 364
|
|
sget-object p1, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_XIAOMO_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
goto/16 :goto_2
|
|
|
|
.line 347
|
|
:pswitch_2
|
|
new-instance p1, Lcom/moji/badge/BadgePreference;
|
|
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
invoke-direct {p1, v0}, Lcom/moji/badge/BadgePreference;-><init>(Landroid/content/Context;)V
|
|
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_NEW_FANS:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-virtual {p1, v0}, Lcom/moji/badge/BadgePreference;->a(Lcom/moji/badge/BadgeEvent$TYPE;)I
|
|
|
|
move-result p1
|
|
|
|
.line 348
|
|
new-instance v0, Lcom/moji/badge/BadgePreference;
|
|
|
|
sget-object v2, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
invoke-direct {v0, v2}, Lcom/moji/badge/BadgePreference;-><init>(Landroid/content/Context;)V
|
|
|
|
sget-object v2, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-virtual {v0, v2}, Lcom/moji/badge/BadgePreference;->a(Lcom/moji/badge/BadgeEvent$TYPE;)I
|
|
|
|
move-result v0
|
|
|
|
.line 349
|
|
sget-object v2, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_NEW_FANS:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v2, v3, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 350
|
|
sget-object v2, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_NEW_FANS:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v2}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
.line 352
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1, v0, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
sub-int/2addr v0, p1
|
|
|
|
if-lez v0, :cond_3
|
|
|
|
.line 355
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v1, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1, v1, v0}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 357
|
|
:cond_3
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1, v0, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 360
|
|
:goto_1
|
|
sget-object p1, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 339
|
|
:pswitch_3
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_FORUM:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1, v0, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 340
|
|
sget-object p1, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_FORUM:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 335
|
|
:pswitch_4
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_SHOP_PRODUCT_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1, v0, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 336
|
|
sget-object p1, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_SHOP_PRODUCT_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 327
|
|
:pswitch_5
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_PICPRAISE_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1, v0, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 328
|
|
sget-object p1, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_PICPRAISE_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 323
|
|
:pswitch_6
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_PICCOMMENT_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1, v0, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 324
|
|
sget-object p1, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_PICCOMMENT_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 319
|
|
:pswitch_7
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_XIAOMO_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1, v0, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 320
|
|
sget-object p1, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_XIAOMO_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 383
|
|
:cond_4
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_FEED_BACK:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1, v0, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 384
|
|
sget-object p1, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_FEED_BACK:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 343
|
|
:cond_5
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_FEED:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1, v0, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 344
|
|
sget-object p1, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_FEED:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 331
|
|
:cond_6
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NEW_AVATAR:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1, v0, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 332
|
|
sget-object p1, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NEW_AVATAR:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
:goto_2
|
|
return-void
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_7
|
|
:pswitch_6
|
|
:pswitch_5
|
|
.end packed-switch
|
|
|
|
:pswitch_data_1
|
|
.packed-switch 0xa
|
|
:pswitch_4
|
|
:pswitch_3
|
|
.end packed-switch
|
|
|
|
:pswitch_data_2
|
|
.packed-switch 0x12
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public static h()Z
|
|
.locals 1
|
|
|
|
.line 190
|
|
invoke-static {}, Lcom/moji/account/data/AccountProvider;->a()Lcom/moji/account/data/AccountProvider;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/moji/account/data/AccountProvider;->f()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method private k()V
|
|
.locals 2
|
|
|
|
.line 405
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 406
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_piccomment_count:I
|
|
|
|
.line 407
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_picpraise_count:I
|
|
|
|
.line 408
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_topic_count:I
|
|
|
|
.line 409
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->message_topic_praise_count:I
|
|
|
|
.line 410
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->message_topic_speech_reply_count:I
|
|
|
|
.line 411
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->message_toicp_comment_reply_count:I
|
|
|
|
.line 412
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->message_toicp_speech_praise_count:I
|
|
|
|
.line 413
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->message_toipc_comment_praise_count:I
|
|
|
|
.line 414
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->message_topic_speech_at_count:I
|
|
|
|
.line 415
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->message_topic_del_count:I
|
|
|
|
.line 416
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_feedstream_count:I
|
|
|
|
.line 417
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->attention_count:I
|
|
|
|
.line 418
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->friendtrends_count:I
|
|
|
|
.line 419
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_friendtrends_count:I
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private l()Z
|
|
.locals 1
|
|
|
|
.line 701
|
|
invoke-static {}, Lcom/moji/preferences/SettingNotificationPrefer;->c()Lcom/moji/preferences/SettingNotificationPrefer;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/moji/preferences/SettingNotificationPrefer;->h()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-static {}, Lcom/moji/preferences/SettingNotificationPrefer;->c()Lcom/moji/preferences/SettingNotificationPrefer;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/moji/preferences/SettingNotificationPrefer;->d()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method private m()Z
|
|
.locals 1
|
|
|
|
.line 708
|
|
invoke-static {}, Lcom/moji/preferences/SettingNotificationPrefer;->c()Lcom/moji/preferences/SettingNotificationPrefer;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/moji/preferences/SettingNotificationPrefer;->d()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-static {}, Lcom/moji/preferences/SettingNotificationPrefer;->c()Lcom/moji/preferences/SettingNotificationPrefer;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/moji/preferences/SettingNotificationPrefer;->j()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method private n()Z
|
|
.locals 1
|
|
|
|
.line 715
|
|
invoke-static {}, Lcom/moji/preferences/SettingNotificationPrefer;->c()Lcom/moji/preferences/SettingNotificationPrefer;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/moji/preferences/SettingNotificationPrefer;->d()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-static {}, Lcom/moji/preferences/SettingNotificationPrefer;->c()Lcom/moji/preferences/SettingNotificationPrefer;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/moji/preferences/SettingNotificationPrefer;->i()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(I)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 390
|
|
invoke-virtual {p0, p1, v0}, Lcom/moji/redpoint/RedPointManager;->a(IZ)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(IZ)V
|
|
.locals 1
|
|
|
|
.line 394
|
|
invoke-direct {p0, p1}, Lcom/moji/redpoint/RedPointManager;->b(I)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 397
|
|
:cond_0
|
|
invoke-virtual {p0}, Lcom/moji/redpoint/RedPointManager;->i()V
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
.line 399
|
|
new-instance p2, Lcom/moji/http/ugc/ClearReadedMsgRequest;
|
|
|
|
invoke-direct {p2, p1}, Lcom/moji/http/ugc/ClearReadedMsgRequest;-><init>(I)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
invoke-virtual {p2, p1}, Lcom/moji/http/ugc/ClearReadedMsgRequest;->a(Lcom/moji/requestcore/MJBaseHttpCallback;)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(J)V
|
|
.locals 5
|
|
|
|
.line 749
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->a:Ljava/util/List;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 752
|
|
:cond_0
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->a:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_1
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lcom/moji/http/message/bean/NewMessageCount$ModuleRedPoint;
|
|
|
|
.line 753
|
|
iget-wide v2, v1, Lcom/moji/http/message/bean/NewMessageCount$ModuleRedPoint;->module_id:J
|
|
|
|
cmp-long v4, v2, p1
|
|
|
|
if-nez v4, :cond_1
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 754
|
|
iput p1, v1, Lcom/moji/http/message/bean/NewMessageCount$ModuleRedPoint;->flag:I
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Lcom/moji/http/message/bean/NewMessageCount;)V
|
|
.locals 2
|
|
|
|
.line 145
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v1, p1, Lcom/moji/http/message/bean/NewMessageCount;->comment_count:I
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_piccomment_count:I
|
|
|
|
.line 146
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v1, p1, Lcom/moji/http/message/bean/NewMessageCount;->praise_count:I
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_picpraise_count:I
|
|
|
|
.line 147
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v1, p1, Lcom/moji/http/message/bean/NewMessageCount;->xiaomo_count:I
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_xiaomo_count:I
|
|
|
|
.line 148
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v1, p1, Lcom/moji/http/message/bean/NewMessageCount;->feed_count:I
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_feedstream_count:I
|
|
|
|
.line 149
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v1, p1, Lcom/moji/http/message/bean/NewMessageCount;->followed_count:I
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->attention_count:I
|
|
|
|
.line 150
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v1, p1, Lcom/moji/http/message/bean/NewMessageCount;->moquan_count:I
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_topic_count:I
|
|
|
|
.line 151
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v1, p1, Lcom/moji/http/message/bean/NewMessageCount;->friend_dynamic_count:I
|
|
|
|
iput v1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->friendtrends_count:I
|
|
|
|
.line 152
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget p1, p1, Lcom/moji/http/message/bean/NewMessageCount;->redpoint_pd_flag:I
|
|
|
|
iput p1, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->redpoint_pd_flag:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(Z)V
|
|
.locals 1
|
|
|
|
.line 670
|
|
iput-boolean p1, p0, Lcom/moji/redpoint/RedPointManager;->b:Z
|
|
|
|
.line 671
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {p1, v0}, Lcom/moji/badge/BadgeUtil;->b(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;)I
|
|
|
|
move-result p1
|
|
|
|
const v0, -0xffff
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
iget-boolean p1, p0, Lcom/moji/redpoint/RedPointManager;->b:Z
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
:cond_0
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
.line 672
|
|
invoke-static {p1, v0}, Lcom/moji/badge/BadgeUtil;->b(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;)I
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
iget-boolean p1, p0, Lcom/moji/redpoint/RedPointManager;->b:Z
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 673
|
|
:cond_1
|
|
invoke-virtual {p0}, Lcom/moji/redpoint/RedPointManager;->i()V
|
|
|
|
:cond_2
|
|
return-void
|
|
.end method
|
|
|
|
.method public a(ZLcom/moji/badge/BadgeEvent$TYPE;)V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
.line 685
|
|
invoke-static {}, Lcom/moji/preferences/units/SettingCenter;->a()Lcom/moji/preferences/units/SettingCenter;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lcom/moji/preferences/units/SettingCenter;->b()Lcom/moji/preferences/units/ELanguage;
|
|
|
|
move-result-object p1
|
|
|
|
sget-object v1, Lcom/moji/preferences/units/ELanguage;->CN:Lcom/moji/preferences/units/ELanguage;
|
|
|
|
if-ne p1, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 686
|
|
:cond_0
|
|
sget-object p1, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_AD_TWO:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
const v1, -0xfffe
|
|
|
|
if-ne p2, p1, :cond_1
|
|
|
|
new-instance p1, Lcom/moji/badge/BadgePreference;
|
|
|
|
sget-object v2, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
invoke-direct {p1, v2}, Lcom/moji/badge/BadgePreference;-><init>(Landroid/content/Context;)V
|
|
|
|
sget-object v2, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_AD_TWO:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-virtual {p1, v2}, Lcom/moji/badge/BadgePreference;->a(Lcom/moji/badge/BadgeEvent$TYPE;)I
|
|
|
|
move-result p1
|
|
|
|
if-eq p1, v1, :cond_2
|
|
|
|
:cond_1
|
|
sget-object p1, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_AD:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
if-ne p2, p1, :cond_3
|
|
|
|
new-instance p1, Lcom/moji/badge/BadgePreference;
|
|
|
|
sget-object v2, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
invoke-direct {p1, v2}, Lcom/moji/badge/BadgePreference;-><init>(Landroid/content/Context;)V
|
|
|
|
sget-object v2, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_AD:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-virtual {p1, v2}, Lcom/moji/badge/BadgePreference;->a(Lcom/moji/badge/BadgeEvent$TYPE;)I
|
|
|
|
move-result p1
|
|
|
|
if-ne p1, v1, :cond_3
|
|
|
|
:cond_2
|
|
if-nez v0, :cond_3
|
|
|
|
.line 687
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
invoke-static {p1, p2, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 689
|
|
:cond_3
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
const v0, -0xffff
|
|
|
|
invoke-static {p1, p2, v0}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 692
|
|
:cond_4
|
|
sget-object p1, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
invoke-static {p1, p2, v0}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 694
|
|
:goto_0
|
|
invoke-static {p2}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()V
|
|
.locals 1
|
|
|
|
.line 73
|
|
iget-boolean v0, p0, Lcom/moji/redpoint/RedPointManager;->f:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 74
|
|
invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0}, Lcom/moji/bus/Bus;->a(Ljava/lang/Object;)V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 75
|
|
iput-boolean v0, p0, Lcom/moji/redpoint/RedPointManager;->f:Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public c()V
|
|
.locals 1
|
|
|
|
.line 80
|
|
iget-boolean v0, p0, Lcom/moji/redpoint/RedPointManager;->f:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 81
|
|
invoke-static {}, Lcom/moji/bus/Bus;->a()Lcom/moji/bus/Bus;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0}, Lcom/moji/bus/Bus;->b(Ljava/lang/Object;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 82
|
|
iput-boolean v0, p0, Lcom/moji/redpoint/RedPointManager;->f:Z
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public d()I
|
|
.locals 1
|
|
|
|
.line 97
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 98
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v0, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->attention_count:I
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public e()I
|
|
.locals 1
|
|
|
|
.line 104
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 105
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v0, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_piccomment_count:I
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public eventLoginSuccess(Lcom/moji/bus/event/BusEventCommon$LoginSuccessEvent;)V
|
|
.locals 0
|
|
.annotation runtime Lorg/greenrobot/eventbus/Subscribe;
|
|
a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
|
|
.end annotation
|
|
|
|
.line 88
|
|
invoke-virtual {p0}, Lcom/moji/redpoint/RedPointManager;->g()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public eventLogoutSuccess(Lcom/moji/bus/event/BusEventCommon$LogoutSuccessEvent;)V
|
|
.locals 0
|
|
.annotation runtime Lorg/greenrobot/eventbus/Subscribe;
|
|
a = .enum Lorg/greenrobot/eventbus/ThreadMode;->MAIN:Lorg/greenrobot/eventbus/ThreadMode;
|
|
.end annotation
|
|
|
|
.line 93
|
|
invoke-virtual {p0}, Lcom/moji/redpoint/RedPointManager;->g()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public f()I
|
|
.locals 1
|
|
|
|
.line 111
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 112
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v0, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_picpraise_count:I
|
|
|
|
return v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public g()V
|
|
.locals 3
|
|
|
|
.line 156
|
|
new-instance v0, Lcom/moji/redpoint/RedPointManager$2;
|
|
|
|
invoke-direct {v0, p0}, Lcom/moji/redpoint/RedPointManager$2;-><init>(Lcom/moji/redpoint/RedPointManager;)V
|
|
|
|
.line 167
|
|
new-instance v1, Lcom/moji/redpoint/RedPointManager$3;
|
|
|
|
invoke-direct {v1, p0, v0}, Lcom/moji/redpoint/RedPointManager$3;-><init>(Lcom/moji/redpoint/RedPointManager;Lcom/moji/requestcore/MJHttpCallback;)V
|
|
|
|
sget-object v0, Lcom/moji/tool/thread/ThreadType;->IO_THREAD:Lcom/moji/tool/thread/ThreadType;
|
|
|
|
sget-object v2, Lcom/moji/tool/thread/ThreadPriority;->NORMAL:Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
invoke-static {v1, v0, v2}, Lcom/moji/tool/thread/MJPools;->a(Ljava/lang/Runnable;Lcom/moji/tool/thread/ThreadType;Lcom/moji/tool/thread/ThreadPriority;)I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public i()V
|
|
.locals 6
|
|
|
|
.line 425
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
const v1, -0xffff
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
.line 427
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v3}, Lcom/moji/badge/BadgeUtil;->b(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;)I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-boolean v0, p0, Lcom/moji/redpoint/RedPointManager;->b:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 429
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v2, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v2, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 430
|
|
:cond_0
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v3}, Lcom/moji/badge/BadgeUtil;->b(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;)I
|
|
|
|
move-result v0
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
.line 431
|
|
iget-boolean v0, p0, Lcom/moji/redpoint/RedPointManager;->b:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 432
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v2, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v2, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 434
|
|
:cond_1
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v1, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v1, v2}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 437
|
|
:cond_2
|
|
:goto_0
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
return-void
|
|
|
|
.line 441
|
|
:cond_3
|
|
invoke-static {}, Lcom/moji/redpoint/RedPointManager;->h()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
.line 442
|
|
invoke-direct {p0}, Lcom/moji/redpoint/RedPointManager;->k()V
|
|
|
|
.line 444
|
|
:cond_4
|
|
invoke-direct {p0}, Lcom/moji/redpoint/RedPointManager;->l()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_5
|
|
|
|
.line 445
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v2, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->friendtrends_count:I
|
|
|
|
.line 447
|
|
:cond_5
|
|
invoke-direct {p0}, Lcom/moji/redpoint/RedPointManager;->m()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_6
|
|
|
|
.line 448
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iput v2, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_xiaomo_count:I
|
|
|
|
.line 451
|
|
:cond_6
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v0, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_piccomment_count:I
|
|
|
|
.line 453
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_PICCOMMENT_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
sget-object v5, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v5, v5, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_piccomment_count:I
|
|
|
|
invoke-static {v3, v4, v5}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 454
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v3, v3, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_piccomment_count:I
|
|
|
|
if-nez v3, :cond_7
|
|
|
|
.line 455
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_PICCOMMENT_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3, v4, v2}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 457
|
|
:cond_7
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_PICCOMMENT_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
.line 459
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v3, v3, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_picpraise_count:I
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
.line 461
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_PICPRAISE_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
sget-object v5, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v5, v5, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_picpraise_count:I
|
|
|
|
invoke-static {v3, v4, v5}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 462
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v3, v3, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_picpraise_count:I
|
|
|
|
if-nez v3, :cond_8
|
|
|
|
.line 463
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_PICPRAISE_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3, v4, v2}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 465
|
|
:cond_8
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_PICPRAISE_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
.line 469
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v3, v3, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_piccomment_count:I
|
|
|
|
sget-object v4, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v4, v4, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_picpraise_count:I
|
|
|
|
add-int/2addr v3, v4
|
|
|
|
.line 470
|
|
sget-object v4, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v5, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_LIVEVIEW_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v4, v5, v3}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
if-nez v3, :cond_9
|
|
|
|
.line 472
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_LIVEVIEW_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3, v4, v2}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 474
|
|
:cond_9
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_LIVEVIEW_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
.line 477
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v3, v3, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_xiaomo_count:I
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
.line 479
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_XIAOMO_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
sget-object v5, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v5, v5, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_xiaomo_count:I
|
|
|
|
invoke-static {v3, v4, v5}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 480
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v3, v3, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_xiaomo_count:I
|
|
|
|
if-nez v3, :cond_a
|
|
|
|
.line 481
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_XIAOMO_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3, v4, v2}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 483
|
|
:cond_a
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_XIAOMO_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
.line 485
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v3, v3, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_topic_count:I
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
.line 488
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_FORUM:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
sget-object v5, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v5, v5, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_topic_count:I
|
|
|
|
invoke-static {v3, v4, v5}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 489
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v3, v3, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_topic_count:I
|
|
|
|
if-nez v3, :cond_b
|
|
|
|
.line 490
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_FORUM:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3, v4, v2}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 492
|
|
:cond_b
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_FORUM:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
.line 494
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v3, v3, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_feedstream_count:I
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
.line 497
|
|
sget-object v4, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v5, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_FEED:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v4, v5, v3}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
if-nez v3, :cond_c
|
|
|
|
.line 499
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_FEED:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3, v4, v2}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 501
|
|
:cond_c
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_FEED:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
.line 505
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v3, v3, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->attention_count:I
|
|
|
|
add-int/2addr v0, v3
|
|
|
|
.line 506
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_NEW_FANS:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
sget-object v5, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v5, v5, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->attention_count:I
|
|
|
|
invoke-static {v3, v4, v5}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 507
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v3, v3, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->attention_count:I
|
|
|
|
if-nez v3, :cond_d
|
|
|
|
.line 508
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_NEW_FANS:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3, v4, v2}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 510
|
|
:cond_d
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_NEW_FANS:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
.line 514
|
|
invoke-static {}, Lcom/moji/redpoint/RedPointManager;->h()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_f
|
|
|
|
.line 515
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v3, v3, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->friendtrends_count:I
|
|
|
|
if-lez v3, :cond_e
|
|
|
|
.line 516
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_FRIEND_DYNAMIC:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3, v4, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 518
|
|
:cond_e
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_FRIEND_DYNAMIC:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3, v4, v2}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 521
|
|
:cond_f
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_FRIEND_DYNAMIC:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3, v4, v2}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 523
|
|
:goto_1
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_FRIEND_DYNAMIC:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
if-nez v0, :cond_10
|
|
|
|
.line 528
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_MINE:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3, v4, v2}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
goto :goto_2
|
|
|
|
.line 530
|
|
:cond_10
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_MINE:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3, v4, v0}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 532
|
|
:goto_2
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_MINE:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
.line 535
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3, v4, v0}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 536
|
|
invoke-static {}, Lcom/moji/redpoint/RedPointManager;->h()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_12
|
|
|
|
if-lez v0, :cond_11
|
|
|
|
.line 538
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3, v4, v0}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_11
|
|
if-nez v0, :cond_13
|
|
|
|
.line 540
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3, v4, v2}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
goto :goto_3
|
|
|
|
.line 543
|
|
:cond_12
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
sget-object v5, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v5, v5, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_xiaomo_count:I
|
|
|
|
invoke-static {v3, v4, v5}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 544
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v3, v3, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->new_message_xiaomo_count:I
|
|
|
|
if-nez v3, :cond_13
|
|
|
|
.line 545
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3, v4, v2}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 548
|
|
:cond_13
|
|
:goto_3
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
.line 551
|
|
invoke-direct {p0}, Lcom/moji/redpoint/RedPointManager;->n()Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_14
|
|
|
|
goto :goto_4
|
|
|
|
:cond_14
|
|
const/4 v0, 0x0
|
|
|
|
:goto_4
|
|
if-lez v0, :cond_15
|
|
|
|
.line 553
|
|
sget-object v3, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v4, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_DESTOP:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v3, v4, v0}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 554
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v3, v0}, Lme/leolin/shortcutbadger/ShortcutBadger;->a(Landroid/content/Context;I)Z
|
|
|
|
goto :goto_5
|
|
|
|
.line 556
|
|
:cond_15
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_DESTOP:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v3, v2}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 557
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lme/leolin/shortcutbadger/ShortcutBadger;->a(Landroid/content/Context;)Z
|
|
|
|
.line 560
|
|
:goto_5
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NEW_AVATAR:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
const v4, -0xfffe
|
|
|
|
invoke-static {v0, v3, v4}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 561
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v0, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->dress_helper_count:I
|
|
|
|
if-nez v0, :cond_16
|
|
|
|
.line 562
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NEW_AVATAR:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v3, v2}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 564
|
|
:cond_16
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NEW_AVATAR:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
.line 566
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_SHOP_PRODUCT_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v3, v4}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 567
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v0, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->shop_product_count:I
|
|
|
|
if-nez v0, :cond_17
|
|
|
|
.line 568
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_SHOP_PRODUCT_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v3, v2}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 570
|
|
:cond_17
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_SHOP_PRODUCT_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
.line 572
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_AIRNUT_COUNT:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v3, v4}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 581
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v0, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->feedback_count:I
|
|
|
|
if-lez v0, :cond_18
|
|
|
|
.line 582
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_FEED_BACK:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v3, v4}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
goto :goto_6
|
|
|
|
.line 584
|
|
:cond_18
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_FEED_BACK:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v3, v2}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 586
|
|
:goto_6
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_FEED_BACK:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
.line 589
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v0, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->feedback_count:I
|
|
|
|
if-lez v0, :cond_19
|
|
|
|
.line 590
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_SETTING:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v3, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
goto :goto_7
|
|
|
|
.line 592
|
|
:cond_19
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_SETTING:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v3, v2}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 594
|
|
:goto_7
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_SETTING:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
.line 616
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v3}, Lcom/moji/badge/BadgeUtil;->b(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;)I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1a
|
|
|
|
iget-boolean v0, p0, Lcom/moji/redpoint/RedPointManager;->b:Z
|
|
|
|
if-eqz v0, :cond_1a
|
|
|
|
.line 618
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v3, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
goto :goto_8
|
|
|
|
.line 620
|
|
:cond_1a
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v3}, Lcom/moji/badge/BadgeUtil;->b(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;)I
|
|
|
|
move-result v0
|
|
|
|
if-ne v0, v1, :cond_1c
|
|
|
|
.line 622
|
|
iget-boolean v0, p0, Lcom/moji/redpoint/RedPointManager;->b:Z
|
|
|
|
if-eqz v0, :cond_1b
|
|
|
|
.line 623
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v3, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
goto :goto_8
|
|
|
|
.line 625
|
|
:cond_1b
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v3, v2}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 628
|
|
:cond_1c
|
|
:goto_8
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
.line 633
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v3}, Lcom/moji/badge/BadgeUtil;->b(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;)I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1d
|
|
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v0, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->feedback_count:I
|
|
|
|
if-lez v0, :cond_1d
|
|
|
|
.line 635
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v3, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v3, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 637
|
|
:cond_1d
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->MESSAGE_NUM_MY:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
.line 655
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->d:Lcom/moji/http/ugc/bean/AvatarRedPointResp;
|
|
|
|
iget v0, v0, Lcom/moji/http/ugc/bean/AvatarRedPointResp;->redpoint_pd_flag:I
|
|
|
|
if-lez v0, :cond_1e
|
|
|
|
.line 656
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v2, Lcom/moji/badge/BadgeEvent$TYPE;->NEWLIVEVIEW_INDIVIDUATION:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v2, v1}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
goto :goto_9
|
|
|
|
.line 658
|
|
:cond_1e
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->e:Landroid/content/Context;
|
|
|
|
sget-object v1, Lcom/moji/badge/BadgeEvent$TYPE;->NEWLIVEVIEW_INDIVIDUATION:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0, v1, v2}, Lcom/moji/badge/BadgeUtil;->a(Landroid/content/Context;Lcom/moji/badge/BadgeEvent$TYPE;I)V
|
|
|
|
.line 660
|
|
:goto_9
|
|
sget-object v0, Lcom/moji/badge/BadgeEvent$TYPE;->NEWLIVEVIEW_INDIVIDUATION:Lcom/moji/badge/BadgeEvent$TYPE;
|
|
|
|
invoke-static {v0}, Lcom/moji/badge/BadgeUtil;->a(Lcom/moji/badge/BadgeEvent$TYPE;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public j()Ljava/util/List;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Lcom/moji/http/message/bean/NewMessageCount$ModuleRedPoint;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 741
|
|
sget-object v0, Lcom/moji/redpoint/RedPointManager;->a:Ljava/util/List;
|
|
|
|
return-object v0
|
|
.end method
|