ad.smali

.class public Lcom/cleanmaster/ui/floatwindow/switchcontrol/ad;
.super Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;
.source "MemoryController.java"

# interfaces
.implements Lcom/cm/plugincluster/nagativescreen/interfaces/INotificationController;


# direct methods
.method public constructor <init>()V
    .registers 3

    .prologue
    .line 22
    invoke-direct {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/SwitchItemController;-><init>()V

    .line 23
    const v0, 0x7f0a0f75

    iput v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ad;->t:I

    .line 24
    iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ad;->c:Landroid/content/Context;

    iget v1, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ad;->t:I

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ad;->n:Ljava/lang/String;

    .line 25
    return-void
.end method


# virtual methods
.method public a()I
    .registers 2

    .prologue
    .line 29
    const/4 v0, 0x1

    return v0
.end method

.method public a(I)V
    .registers 2

    .prologue
    .line 35
    return-void
.end method

.method public b()V
    .registers 1

    .prologue
    .line 50
    invoke-virtual {p0}, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ad;->onClick()V

    .line 51
    return-void
.end method

.method public c()I
    .registers 2

    .prologue
    .line 55
    const/16 v0, 0x9

    return v0
.end method

.method public d()Ljava/lang/String;
    .registers 2

    .prologue
    .line 65
    iget-object v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ad;->l:Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;

    iget-object v0, v0, Lcom/cleanmaster/hpsharelib/base/imagefont/FontImageType;->memory:Ljava/lang/String;

    return-object v0
.end method

.method public getNotificationResId(I)I
    .registers 3

    .prologue
    .line 60
    iget v0, p0, Lcom/cleanmaster/ui/floatwindow/switchcontrol/ad;->s:I

    return v0
.end method

.method public onClick()V
    .registers 4

    .prologue
    const/4 v2, 0x0

    .line 39
    invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->isFloatWindowEnable()Z

    move-result v0

    if-nez v0, :cond_2e

    const v0, 0x11a005

    .line 40
    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    new-array v2, v2, [Ljava/lang/Object;

    invoke-static {v0, v1, v2}, Lcom/cm/plugincluster/spec/CommanderManager;->invokeCommand(ILjava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-nez v0, :cond_2e

    .line 41
    invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/base/util/system/PhoneModelUtils;->isWindowAlterCloseByMIUIV5(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_38

    .line 42
    :cond_2e
    invoke-static {}, Lcom/cm/plugincluster/loststars/proxy/LostStarsPluginDelegate;->getPluginModule()Lcom/cm/plugincluster/loststars/interfaces/ILostStarsPluginModule;

    move-result-object v0

    const/16 v1, 0x10

    invoke-interface {v0, v1}, Lcom/cm/plugincluster/loststars/interfaces/ILostStarsPluginModule;->startFloatService(I)V

    .line 46
    :goto_37
    return-void

    .line 44
    :cond_38
    invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;

    move-result-object v0

    const/16 v1, 0x1b

    invoke-static {v0, v1}, Lcom/cm/plugincluster/core/proxy/ProcessManagerActivityProxy;->launchFromOutSide(Landroid/content/Context;I)Z

    goto :goto_37
.end method