a.smali
.class public Lcom/cm/reminder/system/a/a;
.super Ljava/lang/Object;
.source "CalendarSyncDialogController.java"
# instance fields
.field private a:Landroid/app/Dialog;
# direct methods
.method public constructor <init>()V
.registers 1
.prologue
.line 19
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static c()J
.registers 4
.prologue
.line 102
const-string v0, "key_cm_reminder_system_sync_last_time"
const-wide/16 v2, 0x0
invoke-static {v0, v2, v3}, Lcom/cleanmaster/hpcommonlib/ServiceConfigManager;->getLongValue(Ljava/lang/String;J)J
move-result-wide v0
return-wide v0
.end method
.method public static d()V
.registers 4
.prologue
.line 106
const-string v0, "key_cm_reminder_system_sync_last_time"
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v2
invoke-static {v0, v2, v3}, Lcom/cleanmaster/hpcommonlib/ServiceConfigManager;->setLongValue(Ljava/lang/String;J)V
.line 107
return-void
.end method
.method public static e()Lcom/cm/reminder/system/a/a;
.registers 1
.prologue
.line 110
new-instance v0, Lcom/cm/reminder/system/a/a;
invoke-direct {v0}, Lcom/cm/reminder/system/a/a;-><init>()V
return-object v0
.end method
.method public static f()V
.registers 2
.prologue
.line 115
const-string v0, "key_cm_reminder_app_enter_main_forbide"
const/4 v1, 0x1
invoke-static {v0, v1}, Lcom/cleanmaster/hpcommonlib/ServiceConfigManager;->setBooleanValue(Ljava/lang/String;Z)V
.line 116
return-void
.end method
.method public static g()Z
.registers 2
.prologue
.line 119
const-string v0, "key_cm_reminder_app_enter_main_forbide"
const/4 v1, 0x0
invoke-static {v0, v1}, Lcom/cleanmaster/hpcommonlib/ServiceConfigManager;->getBooleanValue(Ljava/lang/String;Z)Z
move-result v0
return v0
.end method
.method public static h()I
.registers 2
.prologue
.line 123
const-string v0, "key_cm_reminder_app_enter_show_count"
const/4 v1, 0x0
invoke-static {v0, v1}, Lcom/cleanmaster/hpcommonlib/ServiceConfigManager;->getIntValue(Ljava/lang/String;I)I
move-result v0
return v0
.end method
.method public static i()V
.registers 2
.prologue
.line 127
const-string v0, "key_cm_reminder_app_enter_show_count"
const/4 v1, 0x0
invoke-static {v0, v1}, Lcom/cleanmaster/hpcommonlib/ServiceConfigManager;->getIntValue(Ljava/lang/String;I)I
move-result v0
.line 128
const-string v1, "key_cm_reminder_app_enter_show_count"
add-int/lit8 v0, v0, 0x1
invoke-static {v1, v0}, Lcom/cleanmaster/hpcommonlib/ServiceConfigManager;->setIntValue(Ljava/lang/String;I)V
.line 129
return-void
.end method
.method public static j()Z
.registers 3
.prologue
const/4 v0, 0x0
.line 132
sget-object v1, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String;
.line 133
if-nez v1, :cond_6
.line 141
:cond_5
:goto_5
return v0
.line 137
:cond_6
const-string/jumbo v2, "vivo"
invoke-virtual {v1, v2}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v1
if-eqz v1, :cond_5
.line 138
const/4 v0, 0x1
goto :goto_5
.end method
# virtual methods
.method public a(I)V
.registers 4
.prologue
const/4 v1, 0x1
.line 82
const v0, 0xa0b1
if-eq p1, v0, :cond_7
.line 90
:goto_6
return-void
.line 83
:cond_7
invoke-static {}, Lcom/cleanmaster/hpcommonlib/HostHelper;->getAppContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0}, Lcom/cm/reminder/system/d;->b(Landroid/content/Context;)Z
move-result v0
if-eqz v0, :cond_23
.line 84
invoke-static {}, Lcom/cm/reminder/c/j;->a()Lcom/cm/reminder/c/j;
move-result-object v0
invoke-virtual {v0, v1}, Lcom/cm/reminder/c/j;->b(B)V
.line 85
invoke-static {v1}, Lcom/cm/reminder/system/d;->a(Z)V
.line 86
invoke-static {}, Lcom/cleanmaster/hpcommonlib/HostHelper;->getAppContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0}, Lcom/cm/reminder/system/ui/SyncCalendarBroadcastReceiver;->a(Landroid/content/Context;)V
goto :goto_6
.line 88
:cond_23
invoke-static {}, Lcom/cm/reminder/c/j;->a()Lcom/cm/reminder/c/j;
move-result-object v0
const/4 v1, 0x2
invoke-virtual {v0, v1}, Lcom/cm/reminder/c/j;->b(B)V
goto :goto_6
.end method
.method public a(Landroid/app/Activity;)V
.registers 3
.prologue
.line 64
iget-object v0, p0, Lcom/cm/reminder/system/a/a;->a:Landroid/app/Dialog;
if-eqz v0, :cond_d
iget-object v0, p0, Lcom/cm/reminder/system/a/a;->a:Landroid/app/Dialog;
invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z
move-result v0
if-eqz v0, :cond_d
.line 74
:goto_c
return-void
.line 67
:cond_d
invoke-static {}, Lcom/cm/reminder/system/a/a;->d()V
.line 70
invoke-static {}, Lcom/cm/reminder/system/a/a;->i()V
.line 72
invoke-static {p1, p0}, Lcom/cm/reminder/view/c;->a(Landroid/app/Activity;Lcom/cm/reminder/system/a/a;)Landroid/app/Dialog;
move-result-object v0
iput-object v0, p0, Lcom/cm/reminder/system/a/a;->a:Landroid/app/Dialog;
goto :goto_c
.end method
.method public a()Z
.registers 7
.prologue
const/4 v0, 0x0
.line 28
invoke-static {}, Lcom/cleanmaster/hpcommonlib/HostHelper;->getAppContext()Landroid/content/Context;
move-result-object v1
invoke-static {v1}, Lcom/cm/reminder/system/d;->b(Landroid/content/Context;)Z
move-result v1
if-nez v1, :cond_e
.line 29
invoke-static {v0}, Lcom/cm/reminder/system/d;->a(Z)V
.line 31
:cond_e
invoke-static {}, Lcom/cm/reminder/system/a/a;->j()Z
move-result v1
if-eqz v1, :cond_18
.line 32
invoke-static {v0}, Lcom/cm/reminder/system/d;->a(Z)V
.line 55
:cond_17
:goto_17
return v0
.line 36
:cond_18
invoke-static {}, Lcom/cm/reminder/system/a/a;->g()Z
move-result v1
if-nez v1, :cond_17
.line 40
invoke-static {}, Lcom/cm/reminder/system/d;->e()Z
move-result v1
if-nez v1, :cond_17
.line 45
invoke-static {}, Lcom/cm/reminder/system/a/a;->h()I
move-result v1
.line 46
const/4 v2, 0x2
if-ge v1, v2, :cond_17
.line 50
invoke-static {}, Lcom/cm/reminder/system/a/a;->c()J
move-result-wide v2
.line 51
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
.line 52
sub-long v2, v4, v2
const-wide/32 v4, 0xf731400
cmp-long v1, v2, v4
if-ltz v1, :cond_17
.line 55
const/4 v0, 0x1
goto :goto_17
.end method
.method public b()V
.registers 2
.prologue
.line 94
iget-object v0, p0, Lcom/cm/reminder/system/a/a;->a:Landroid/app/Dialog;
if-nez v0, :cond_5
.line 99
:cond_4
:goto_4
return-void
.line 95
:cond_5
iget-object v0, p0, Lcom/cm/reminder/system/a/a;->a:Landroid/app/Dialog;
invoke-virtual {v0}, Landroid/app/Dialog;->isShowing()Z
move-result v0
if-eqz v0, :cond_4
.line 96
iget-object v0, p0, Lcom/cm/reminder/system/a/a;->a:Landroid/app/Dialog;
invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V
.line 97
const/4 v0, 0x0
iput-object v0, p0, Lcom/cm/reminder/system/a/a;->a:Landroid/app/Dialog;
goto :goto_4
.end method
.method public b(Landroid/app/Activity;)V
.registers 3
.prologue
.line 77
const v0, 0xa0b1
invoke-static {p1, v0}, Lcom/cm/reminder/system/ui/CalendarPermissionActivity;->a(Landroid/app/Activity;I)V
.line 78
return-void
.end method