SoftMgrCommonPluginDelegate.smali

.class public Lcom/cm/plugincluster/softmgr/plugin/SoftMgrCommonPluginDelegate;
.super Ljava/lang/Object;
.source "SoftMgrCommonPluginDelegate.java"


# static fields
.field private static sDefaultSoftCommonPluginModule:Lcom/cm/plugincluster/softmgr/interfaces/plugin/ISoftCommonPluginModule;

.field private static sISoftCommonPluginModule:Lcom/cm/plugincluster/softmgr/interfaces/plugin/ISoftCommonPluginModule;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 13
    new-instance v0, Lcom/cm/plugincluster/softmgr/plugin/DefaultSoftCommonPluginModule;

    invoke-direct {v0}, Lcom/cm/plugincluster/softmgr/plugin/DefaultSoftCommonPluginModule;-><init>()V

    sput-object v0, Lcom/cm/plugincluster/softmgr/plugin/SoftMgrCommonPluginDelegate;->sDefaultSoftCommonPluginModule:Lcom/cm/plugincluster/softmgr/interfaces/plugin/ISoftCommonPluginModule;

    return-void
.end method

.method public constructor <init>()V
    .registers 1

    .prologue
    .line 11
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static getSoftMgrPluginModule()Lcom/cm/plugincluster/softmgr/interfaces/plugin/ISoftCommonPluginModule;
    .registers 3

    .prologue
    .line 17
    const-class v1, Lcom/cm/plugincluster/softmgr/plugin/SoftMgrCommonPluginDelegate;

    monitor-enter v1

    .line 18
    :try_start_3
    sget-object v0, Lcom/cm/plugincluster/softmgr/plugin/SoftMgrCommonPluginDelegate;->sISoftCommonPluginModule:Lcom/cm/plugincluster/softmgr/interfaces/plugin/ISoftCommonPluginModule;

    if-eqz v0, :cond_b

    .line 19
    sget-object v0, Lcom/cm/plugincluster/softmgr/plugin/SoftMgrCommonPluginDelegate;->sISoftCommonPluginModule:Lcom/cm/plugincluster/softmgr/interfaces/plugin/ISoftCommonPluginModule;

    monitor-exit v1

    .line 28
    :goto_a
    return-object v0

    .line 21
    :cond_b
    const v0, 0x216001

    const/4 v2, 0x0

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

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

    move-result-object v0

    check-cast v0, Lcom/cm/plugincluster/softmgr/interfaces/plugin/ISoftCommonPluginModule;

    sput-object v0, Lcom/cm/plugincluster/softmgr/plugin/SoftMgrCommonPluginDelegate;->sISoftCommonPluginModule:Lcom/cm/plugincluster/softmgr/interfaces/plugin/ISoftCommonPluginModule;

    .line 23
    sget-object v0, Lcom/cm/plugincluster/softmgr/plugin/SoftMgrCommonPluginDelegate;->sISoftCommonPluginModule:Lcom/cm/plugincluster/softmgr/interfaces/plugin/ISoftCommonPluginModule;

    if-nez v0, :cond_24

    .line 24
    sget-object v0, Lcom/cm/plugincluster/softmgr/plugin/SoftMgrCommonPluginDelegate;->sDefaultSoftCommonPluginModule:Lcom/cm/plugincluster/softmgr/interfaces/plugin/ISoftCommonPluginModule;

    .line 28
    :goto_1f
    monitor-exit v1

    goto :goto_a

    .line 29
    :catchall_21
    move-exception v0

    monitor-exit v1
    :try_end_23
    .catchall {:try_start_3 .. :try_end_23} :catchall_21

    throw v0

    .line 26
    :cond_24
    :try_start_24
    sget-object v0, Lcom/cm/plugincluster/softmgr/plugin/SoftMgrCommonPluginDelegate;->sISoftCommonPluginModule:Lcom/cm/plugincluster/softmgr/interfaces/plugin/ISoftCommonPluginModule;
    :try_end_26
    .catchall {:try_start_24 .. :try_end_26} :catchall_21

    goto :goto_1f
.end method

.method public static getSoftMgrPluginModule2()Lcom/cm/plugincluster/softmgr/interfaces/plugin/ISoftCommonPluginModule;
    .registers 3

    .prologue
    .line 33
    const-class v1, Lcom/cm/plugincluster/softmgr/plugin/SoftMgrCommonPluginDelegate;

    monitor-enter v1

    .line 34
    :try_start_3
    sget-object v0, Lcom/cm/plugincluster/softmgr/plugin/SoftMgrCommonPluginDelegate;->sISoftCommonPluginModule:Lcom/cm/plugincluster/softmgr/interfaces/plugin/ISoftCommonPluginModule;

    if-eqz v0, :cond_b

    .line 35
    sget-object v0, Lcom/cm/plugincluster/softmgr/plugin/SoftMgrCommonPluginDelegate;->sISoftCommonPluginModule:Lcom/cm/plugincluster/softmgr/interfaces/plugin/ISoftCommonPluginModule;

    monitor-exit v1

    .line 39
    :goto_a
    return-object v0

    .line 37
    :cond_b
    const v0, 0x216001

    const/4 v2, 0x0

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

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

    move-result-object v0

    check-cast v0, Lcom/cm/plugincluster/softmgr/interfaces/plugin/ISoftCommonPluginModule;

    sput-object v0, Lcom/cm/plugincluster/softmgr/plugin/SoftMgrCommonPluginDelegate;->sISoftCommonPluginModule:Lcom/cm/plugincluster/softmgr/interfaces/plugin/ISoftCommonPluginModule;

    .line 39
    sget-object v0, Lcom/cm/plugincluster/softmgr/plugin/SoftMgrCommonPluginDelegate;->sISoftCommonPluginModule:Lcom/cm/plugincluster/softmgr/interfaces/plugin/ISoftCommonPluginModule;

    monitor-exit v1

    goto :goto_a

    .line 40
    :catchall_1d
    move-exception v0

    monitor-exit v1
    :try_end_1f
    .catchall {:try_start_3 .. :try_end_1f} :catchall_1d

    throw v0
.end method

.method public static showInstallDialog(Ljava/lang/String;Ljava/lang/String;)V
    .registers 5

    .prologue
    .line 44
    const v0, 0x216005

    const/4 v1, 0x2

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

    const/4 v2, 0x0

    aput-object p0, v1, v2

    const/4 v2, 0x1

    aput-object p1, v1, v2

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

    .line 45
    return-void
.end method