d.smali
.class public Lcom/vivo/push/util/d;
.super Ljava/lang/Object;
.source "NotifyUtil.java"
# static fields
.field private static a:Lcom/vivo/push/util/a;
.field private static b:Lcom/vivo/push/util/b;
.field private static c:Ljava/lang/String;
.field private static d:Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 15
const-string v0, "com.vivo.push.util.NotifyDataAdapter"
sput-object v0, Lcom/vivo/push/util/d;->c:Ljava/lang/String;
.line 16
const-string v0, "com.vivo.push.util.NotifyLayoutAdapter"
sput-object v0, Lcom/vivo/push/util/d;->d:Ljava/lang/String;
return-void
.end method
.method public static a(Landroid/content/Context;)Lcom/vivo/push/util/a;
.registers 2
.prologue
.line 54
invoke-static {p0}, Lcom/vivo/push/util/d;->c(Landroid/content/Context;)V
.line 55
sget-object v0, Lcom/vivo/push/util/d;->a:Lcom/vivo/push/util/a;
return-object v0
.end method
.method private static a(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
.registers 4
.prologue
const/4 v0, 0x0
.line 20
.line 24
:try_start_1
invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
:try_end_4
.catch Ljava/lang/Exception; {:try_start_1 .. :try_end_4} :catch_e
move-result-object v1
.line 27
:goto_5
if-eqz v1, :cond_b
.line 29
:try_start_7
invoke-virtual {v1}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;
:try_end_a
.catch Ljava/lang/Exception; {:try_start_7 .. :try_end_a} :catch_11
move-result-object v0
.line 34
:cond_b
:goto_b
if-nez v0, :cond_13
.line 38
:goto_d
return-object p1
:catch_e
move-exception v1
move-object v1, v0
goto :goto_5
:catch_11
move-exception v1
goto :goto_b
:cond_13
move-object p1, v0
goto :goto_d
.end method
.method public static b(Landroid/content/Context;)Lcom/vivo/push/util/b;
.registers 2
.prologue
.line 59
invoke-static {p0}, Lcom/vivo/push/util/d;->c(Landroid/content/Context;)V
.line 60
sget-object v0, Lcom/vivo/push/util/d;->b:Lcom/vivo/push/util/b;
return-object v0
.end method
.method private static declared-synchronized c(Landroid/content/Context;)V
.registers 4
.prologue
.line 43
const-class v1, Lcom/vivo/push/util/d;
monitor-enter v1
:try_start_3
sget-object v0, Lcom/vivo/push/util/d;->a:Lcom/vivo/push/util/a;
if-nez v0, :cond_19
.line 44
sget-object v0, Lcom/vivo/push/util/d;->c:Ljava/lang/String;
new-instance v2, Lcom/vivo/push/util/j;
invoke-direct {v2}, Lcom/vivo/push/util/j;-><init>()V
invoke-static {v0, v2}, Lcom/vivo/push/util/d;->a(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/vivo/push/util/a;
.line 45
sput-object v0, Lcom/vivo/push/util/d;->a:Lcom/vivo/push/util/a;
invoke-interface {v0, p0}, Lcom/vivo/push/util/a;->a(Landroid/content/Context;)V
.line 47
:cond_19
sget-object v0, Lcom/vivo/push/util/d;->b:Lcom/vivo/push/util/b;
if-nez v0, :cond_2f
.line 48
sget-object v0, Lcom/vivo/push/util/d;->d:Ljava/lang/String;
new-instance v2, Lcom/vivo/push/util/l;
invoke-direct {v2}, Lcom/vivo/push/util/l;-><init>()V
invoke-static {v0, v2}, Lcom/vivo/push/util/d;->a(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/vivo/push/util/b;
.line 49
sput-object v0, Lcom/vivo/push/util/d;->b:Lcom/vivo/push/util/b;
invoke-interface {v0, p0}, Lcom/vivo/push/util/b;->a(Landroid/content/Context;)V
:try_end_2f
.catchall {:try_start_3 .. :try_end_2f} :catchall_31
.line 51
:cond_2f
monitor-exit v1
return-void
.line 43
:catchall_31
move-exception v0
monitor-exit v1
throw v0
.end method