NotificationCleanPluginDelegate.smali
.class public Lcom/cm/plugincluster/notificationclean/plugin/NotificationCleanPluginDelegate;
.super Ljava/lang/Object;
.source "NotificationCleanPluginDelegate.java"
# static fields
.field private static sPluginModule:Lcom/cm/plugincluster/notificationclean/interfaces/INotificationCleanPluginModule;
# direct methods
.method public constructor <init>()V
.registers 1
.prologue
.line 13
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static getNotificationCleanModule()Lcom/cm/plugincluster/notificationclean/interfaces/INotificationCleanPluginModule;
.registers 2
.prologue
.line 17
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x12
if-ge v0, v1, :cond_b
.line 18
invoke-static {}, Lcom/cm/plugincluster/notificationclean/plugin/NotificationCleanPluginDelegate;->getNotificationCleanModuleApiLess18()Lcom/cm/plugincluster/notificationclean/interfaces/INotificationCleanPluginModule;
move-result-object v0
.line 20
:goto_a
return-object v0
:cond_b
invoke-static {}, Lcom/cm/plugincluster/notificationclean/plugin/NotificationCleanPluginDelegate;->getNotificationCleanPluginModuleApiGeq18()Lcom/cm/plugincluster/notificationclean/interfaces/INotificationCleanPluginModule;
move-result-object v0
goto :goto_a
.end method
.method private static getNotificationCleanModuleApiLess18()Lcom/cm/plugincluster/notificationclean/interfaces/INotificationCleanPluginModule;
.registers 2
.prologue
.line 38
sget-object v0, Lcom/cm/plugincluster/notificationclean/plugin/NotificationCleanPluginDelegate;->sPluginModule:Lcom/cm/plugincluster/notificationclean/interfaces/INotificationCleanPluginModule;
if-nez v0, :cond_13
.line 39
const-class v1, Lcom/cm/plugincluster/notificationclean/plugin/NotificationCleanPluginDelegate;
monitor-enter v1
.line 40
:try_start_7
sget-object v0, Lcom/cm/plugincluster/notificationclean/plugin/NotificationCleanPluginDelegate;->sPluginModule:Lcom/cm/plugincluster/notificationclean/interfaces/INotificationCleanPluginModule;
if-nez v0, :cond_12
.line 41
new-instance v0, Lcom/cm/plugincluster/notificationclean/plugin/SimpleNotificationCleanPluginModule;
invoke-direct {v0}, Lcom/cm/plugincluster/notificationclean/plugin/SimpleNotificationCleanPluginModule;-><init>()V
sput-object v0, Lcom/cm/plugincluster/notificationclean/plugin/NotificationCleanPluginDelegate;->sPluginModule:Lcom/cm/plugincluster/notificationclean/interfaces/INotificationCleanPluginModule;
.line 43
:cond_12
monitor-exit v1
:try_end_13
.catchall {:try_start_7 .. :try_end_13} :catchall_16
.line 45
:cond_13
sget-object v0, Lcom/cm/plugincluster/notificationclean/plugin/NotificationCleanPluginDelegate;->sPluginModule:Lcom/cm/plugincluster/notificationclean/interfaces/INotificationCleanPluginModule;
return-object v0
.line 43
:catchall_16
move-exception v0
:try_start_17
monitor-exit v1
:try_end_18
.catchall {:try_start_17 .. :try_end_18} :catchall_16
throw v0
.end method
.method private static getNotificationCleanPluginModuleApiGeq18()Lcom/cm/plugincluster/notificationclean/interfaces/INotificationCleanPluginModule;
.registers 3
.prologue
.line 24
sget-object v0, Lcom/cm/plugincluster/notificationclean/plugin/NotificationCleanPluginDelegate;->sPluginModule:Lcom/cm/plugincluster/notificationclean/interfaces/INotificationCleanPluginModule;
if-nez v0, :cond_1a
.line 25
const-class v1, Lcom/cm/plugincluster/notificationclean/plugin/NotificationCleanPluginDelegate;
monitor-enter v1
.line 26
:try_start_7
sget-object v0, Lcom/cm/plugincluster/notificationclean/plugin/NotificationCleanPluginDelegate;->sPluginModule:Lcom/cm/plugincluster/notificationclean/interfaces/INotificationCleanPluginModule;
if-nez v0, :cond_19
.line 27
const v0, 0x208001
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/notificationclean/interfaces/INotificationCleanPluginModule;
sput-object v0, Lcom/cm/plugincluster/notificationclean/plugin/NotificationCleanPluginDelegate;->sPluginModule:Lcom/cm/plugincluster/notificationclean/interfaces/INotificationCleanPluginModule;
.line 29
:cond_19
monitor-exit v1
:try_end_1a
.catchall {:try_start_7 .. :try_end_1a} :catchall_24
.line 31
:cond_1a
sget-object v0, Lcom/cm/plugincluster/notificationclean/plugin/NotificationCleanPluginDelegate;->sPluginModule:Lcom/cm/plugincluster/notificationclean/interfaces/INotificationCleanPluginModule;
if-nez v0, :cond_27
.line 32
new-instance v0, Lcom/cm/plugincluster/notificationclean/plugin/SimpleNotificationCleanPluginModule;
invoke-direct {v0}, Lcom/cm/plugincluster/notificationclean/plugin/SimpleNotificationCleanPluginModule;-><init>()V
.line 34
:goto_23
return-object v0
.line 29
:catchall_24
move-exception v0
:try_start_25
monitor-exit v1
:try_end_26
.catchall {:try_start_25 .. :try_end_26} :catchall_24
throw v0
.line 34
:cond_27
sget-object v0, Lcom/cm/plugincluster/notificationclean/plugin/NotificationCleanPluginDelegate;->sPluginModule:Lcom/cm/plugincluster/notificationclean/interfaces/INotificationCleanPluginModule;
goto :goto_23
.end method