178 lines
4.3 KiB
Smali
178 lines
4.3 KiB
Smali
.class public Lcom/moji/push/MJPushManager;
|
|
.super Ljava/lang/Object;
|
|
.source "MJPushManager.java"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 13
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a()V
|
|
.locals 4
|
|
|
|
.line 19
|
|
invoke-static {}, Lcom/moji/preferences/SettingNotificationPrefer;->c()Lcom/moji/preferences/SettingNotificationPrefer;
|
|
|
|
move-result-object v0
|
|
|
|
.line 20
|
|
invoke-virtual {v0}, Lcom/moji/preferences/SettingNotificationPrefer;->d()Z
|
|
|
|
move-result v1
|
|
|
|
.line 21
|
|
invoke-virtual {v0}, Lcom/moji/preferences/SettingNotificationPrefer;->l()Z
|
|
|
|
move-result v0
|
|
|
|
.line 22
|
|
new-instance v2, Lcom/moji/preferences/ProcessPrefer;
|
|
|
|
invoke-direct {v2}, Lcom/moji/preferences/ProcessPrefer;-><init>()V
|
|
|
|
.line 23
|
|
invoke-static {}, Lcom/moji/preferences/SettingNotificationPrefer;->c()Lcom/moji/preferences/SettingNotificationPrefer;
|
|
|
|
move-result-object v3
|
|
|
|
.line 24
|
|
invoke-virtual {v3}, Lcom/moji/preferences/SettingNotificationPrefer;->w()I
|
|
|
|
move-result v3
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
if-gez v3, :cond_1
|
|
|
|
.line 25
|
|
:cond_0
|
|
invoke-virtual {v2}, Lcom/moji/preferences/ProcessPrefer;->C()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 26
|
|
invoke-static {v0}, Lcom/moji/push/MJPushManager;->a(Z)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const-string v0, "GetuiInit"
|
|
|
|
.line 28
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, " \u4e0d\u6267\u884c\u4e2a\u63a8\u521d\u59cb\u5316 newMessage : "
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->e(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private static a(Z)V
|
|
.locals 3
|
|
|
|
.line 34
|
|
invoke-static {}, Lcom/igexin/sdk/PushManager;->getInstance()Lcom/igexin/sdk/PushManager;
|
|
|
|
move-result-object v0
|
|
|
|
.line 35
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
const-class v2, Lcom/moji/push/MJPushService;
|
|
|
|
invoke-virtual {v0, v1, v2}, Lcom/igexin/sdk/PushManager;->initialize(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
.line 37
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object p0
|
|
|
|
const/16 v1, 0x17
|
|
|
|
const/4 v2, 0x6
|
|
|
|
invoke-virtual {v0, p0, v1, v2}, Lcom/igexin/sdk/PushManager;->setSilentTime(Landroid/content/Context;II)Z
|
|
|
|
goto :goto_0
|
|
|
|
.line 39
|
|
:cond_0
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object p0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, p0, v1, v1}, Lcom/igexin/sdk/PushManager;->setSilentTime(Landroid/content/Context;II)Z
|
|
|
|
.line 41
|
|
:goto_0
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object p0
|
|
|
|
const/16 v1, 0x258
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/igexin/sdk/PushManager;->setHeartbeatInterval(Landroid/content/Context;I)Z
|
|
|
|
.line 43
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object p0
|
|
|
|
const-class v1, Lcom/moji/push/MJPushIntentService;
|
|
|
|
invoke-virtual {v0, p0, v1}, Lcom/igexin/sdk/PushManager;->registerPushIntentService(Landroid/content/Context;Ljava/lang/Class;)V
|
|
|
|
const-string p0, "GetuiInit"
|
|
|
|
const-string v0, " \u4e2a\u63a8\u521d\u59cb\u5316\u6210\u529f "
|
|
|
|
.line 44
|
|
invoke-static {p0, v0}, Lcom/moji/tool/log/MJLogger;->e(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static b()V
|
|
.locals 2
|
|
|
|
.line 48
|
|
invoke-static {}, Lcom/igexin/sdk/PushManager;->getInstance()Lcom/igexin/sdk/PushManager;
|
|
|
|
move-result-object v0
|
|
|
|
.line 49
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/igexin/sdk/PushManager;->stopService(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|