a.smali
.class public Lcom/cleanmaster/ttg/a;
.super Ljava/lang/Object;
.source "TTGShortcutHelper.java"
# static fields
.field private static a:Lcom/cleanmaster/ttg/a;
# instance fields
.field private b:Landroid/app/Activity;
.field private c:Landroid/os/Handler;
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 35
new-instance v0, Lcom/cleanmaster/ttg/a;
invoke-direct {v0}, Lcom/cleanmaster/ttg/a;-><init>()V
sput-object v0, Lcom/cleanmaster/ttg/a;->a:Lcom/cleanmaster/ttg/a;
return-void
.end method
.method private constructor <init>()V
.registers 3
.prologue
.line 57
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 39
new-instance v0, Lcom/cleanmaster/ttg/b;
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v1
invoke-direct {v0, p0, v1}, Lcom/cleanmaster/ttg/b;-><init>(Lcom/cleanmaster/ttg/a;Landroid/os/Looper;)V
iput-object v0, p0, Lcom/cleanmaster/ttg/a;->c:Landroid/os/Handler;
.line 57
return-void
.end method
.method public static declared-synchronized a()Lcom/cleanmaster/ttg/a;
.registers 2
.prologue
.line 60
const-class v1, Lcom/cleanmaster/ttg/a;
monitor-enter v1
:try_start_3
sget-object v0, Lcom/cleanmaster/ttg/a;->a:Lcom/cleanmaster/ttg/a;
if-nez v0, :cond_e
.line 61
new-instance v0, Lcom/cleanmaster/ttg/a;
invoke-direct {v0}, Lcom/cleanmaster/ttg/a;-><init>()V
sput-object v0, Lcom/cleanmaster/ttg/a;->a:Lcom/cleanmaster/ttg/a;
.line 63
:cond_e
sget-object v0, Lcom/cleanmaster/ttg/a;->a:Lcom/cleanmaster/ttg/a;
:try_end_10
.catchall {:try_start_3 .. :try_end_10} :catchall_12
monitor-exit v1
return-object v0
.line 60
:catchall_12
move-exception v0
monitor-exit v1
throw v0
.end method
.method static synthetic a(Lcom/cleanmaster/ttg/a;)V
.registers 1
.prologue
.line 29
invoke-direct {p0}, Lcom/cleanmaster/ttg/a;->c()V
return-void
.end method
.method static synthetic b(Lcom/cleanmaster/ttg/a;)V
.registers 1
.prologue
.line 29
invoke-direct {p0}, Lcom/cleanmaster/ttg/a;->d()V
return-void
.end method
.method static synthetic c(Lcom/cleanmaster/ttg/a;)Landroid/os/Handler;
.registers 2
.prologue
.line 29
iget-object v0, p0, Lcom/cleanmaster/ttg/a;->c:Landroid/os/Handler;
return-object v0
.end method
.method private c()V
.registers 6
.prologue
const/4 v4, 0x0
.line 116
iget-object v0, p0, Lcom/cleanmaster/ttg/a;->b:Landroid/app/Activity;
if-nez v0, :cond_6
.line 143
:goto_5
return-void
.line 119
:cond_6
iget-object v0, p0, Lcom/cleanmaster/ttg/a;->b:Landroid/app/Activity;
invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;
move-result-object v0
const v1, 0x7f0401c5
const/4 v2, 0x0
invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v1
.line 120
new-instance v2, Lcom/cleanmaster/hpsharelib/utils/CustomDialog;
iget-object v0, p0, Lcom/cleanmaster/ttg/a;->b:Landroid/app/Activity;
const v3, 0x7f0b0226
invoke-direct {v2, v0, v3, v1}, Lcom/cleanmaster/hpsharelib/utils/CustomDialog;-><init>(Landroid/content/Context;ILandroid/view/View;)V
.line 121
const/16 v0, 0x11
invoke-virtual {v2, v0, v4, v4}, Lcom/cleanmaster/hpsharelib/utils/CustomDialog;->setPosition(III)V
.line 123
const v0, 0x7f10070d
invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/Button;
.line 124
new-instance v3, Lcom/cleanmaster/ttg/d;
invoke-direct {v3, p0, v2}, Lcom/cleanmaster/ttg/d;-><init>(Lcom/cleanmaster/ttg/a;Lcom/cleanmaster/hpsharelib/utils/CustomDialog;)V
invoke-virtual {v0, v3}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 132
const v0, 0x7f10070f
invoke-virtual {v1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;
move-result-object v0
check-cast v0, Landroid/widget/Button;
.line 133
new-instance v1, Lcom/cleanmaster/ttg/e;
invoke-direct {v1, p0, v2}, Lcom/cleanmaster/ttg/e;-><init>(Lcom/cleanmaster/ttg/a;Lcom/cleanmaster/hpsharelib/utils/CustomDialog;)V
invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V
.line 141
invoke-virtual {v2}, Lcom/cleanmaster/hpsharelib/utils/CustomDialog;->show()V
.line 142
new-instance v0, Lcom/keniu/security/main/b/o;
invoke-direct {v0}, Lcom/keniu/security/main/b/o;-><init>()V
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/keniu/security/main/b/o;->a(I)V
goto :goto_5
.end method
.method private declared-synchronized d()V
.registers 3
.prologue
.line 146
monitor-enter p0
:try_start_1
invoke-static {}, Lcom/cleanmaster/hpsharelib/oeam/OEMFeatureManager;->isTTGEnable()Z
:try_end_4
.catchall {:try_start_1 .. :try_end_4} :catchall_1d
move-result v0
if-nez v0, :cond_9
.line 158
:goto_7
monitor-exit p0
return-void
.line 150
:cond_9
:try_start_9
invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;
move-result-object v0
const v1, 0x7f0a19fd
invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v0
.line 151
new-instance v1, Lcom/cleanmaster/ttg/f;
invoke-direct {v1, p0, v0}, Lcom/cleanmaster/ttg/f;-><init>(Lcom/cleanmaster/ttg/a;Ljava/lang/String;)V
invoke-static {v1}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->post(Ljava/lang/Runnable;)V
:try_end_1c
.catchall {:try_start_9 .. :try_end_1c} :catchall_1d
goto :goto_7
.line 146
:catchall_1d
move-exception v0
monitor-exit p0
throw v0
.end method
# virtual methods
.method public a(I)V
.registers 3
.prologue
.line 71
invoke-static {}, Lcom/cleanmaster/hpsharelib/oeam/OEMFeatureManager;->isDesktopShortcutEnable()Z
move-result v0
if-nez v0, :cond_7
.line 113
:goto_6
return-void
.line 74
:cond_7
new-instance v0, Lcom/cleanmaster/ttg/c;
invoke-direct {v0, p0, p1}, Lcom/cleanmaster/ttg/c;-><init>(Lcom/cleanmaster/ttg/a;I)V
invoke-static {v0}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->post(Ljava/lang/Runnable;)V
goto :goto_6
.end method
.method public a(Landroid/app/Activity;)V
.registers 2
.prologue
.line 67
iput-object p1, p0, Lcom/cleanmaster/ttg/a;->b:Landroid/app/Activity;
.line 68
return-void
.end method
.method public b()V
.registers 3
.prologue
const/4 v1, 0x0
.line 161
iget-object v0, p0, Lcom/cleanmaster/ttg/a;->b:Landroid/app/Activity;
if-eqz v0, :cond_7
.line 162
iput-object v1, p0, Lcom/cleanmaster/ttg/a;->b:Landroid/app/Activity;
.line 164
:cond_7
sget-object v0, Lcom/cleanmaster/ttg/a;->a:Lcom/cleanmaster/ttg/a;
if-eqz v0, :cond_d
.line 165
sput-object v1, Lcom/cleanmaster/ttg/a;->a:Lcom/cleanmaster/ttg/a;
.line 167
:cond_d
return-void
.end method