NotificationCenter.smali

.class public Lcom/avast/android/notification/NotificationCenter;
.super Ljava/lang/Object;


# static fields
.field private static volatile e:Z


# instance fields
.field private final a:Lcom/avast/android/notification/internal/config/ConfigHolder;

.field private final b:Ldagger/Lazy;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ldagger/Lazy<",
            "Lcom/avast/android/notification/TrackingNotificationManager;",
            ">;"
        }
    .end annotation
.end field

.field private final c:Ldagger/Lazy;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ldagger/Lazy<",
            "Lcom/avast/android/notification/internal/push/PushNotificationConfigListener;",
            ">;"
        }
    .end annotation
.end field

.field private final d:Ldagger/Lazy;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ldagger/Lazy<",
            "Lcom/avast/android/notification/safeguard/SafeGuardFilter;",
            ">;"
        }
    .end annotation
.end field


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

    return-void
.end method

.method public constructor <init>(Lcom/avast/android/notification/internal/config/ConfigHolder;Ldagger/Lazy;Ldagger/Lazy;Ldagger/Lazy;Ldagger/Lazy;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/avast/android/notification/internal/config/ConfigHolder;",
            "Ldagger/Lazy<",
            "Lcom/avast/android/notification/TrackingNotificationManager;",
            ">;",
            "Ldagger/Lazy<",
            "Lcom/avast/android/notification/internal/push/PushNotificationListener;",
            ">;",
            "Ldagger/Lazy<",
            "Lcom/avast/android/notification/internal/push/PushNotificationConfigListener;",
            ">;",
            "Ldagger/Lazy<",
            "Lcom/avast/android/notification/safeguard/SafeGuardFilter;",
            ">;)V"
        }
    .end annotation

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

    iput-object p1, p0, Lcom/avast/android/notification/NotificationCenter;->a:Lcom/avast/android/notification/internal/config/ConfigHolder;

    iput-object p2, p0, Lcom/avast/android/notification/NotificationCenter;->b:Ldagger/Lazy;

    iput-object p4, p0, Lcom/avast/android/notification/NotificationCenter;->c:Ldagger/Lazy;

    iput-object p5, p0, Lcom/avast/android/notification/NotificationCenter;->d:Ldagger/Lazy;

    return-void
.end method

.method public static declared-synchronized a()Lcom/avast/android/notification/NotificationCenter;
    .registers 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalStateException;
        }
    .end annotation

    const-class v0, Lcom/avast/android/notification/NotificationCenter;

    monitor-enter v0

    :try_start_3
    invoke-static {}, Lcom/avast/android/notification/NotificationCenter;->f()Z

    move-result v1

    if-eqz v1, :cond_13

    invoke-static {}, Lcom/avast/android/notification/internal/di/ComponentHolder;->a()Lcom/avast/android/notification/internal/di/NotificationCenterComponent;

    move-result-object v1

    invoke-interface {v1}, Lcom/avast/android/notification/internal/di/NotificationCenterComponent;->d()Lcom/avast/android/notification/NotificationCenter;

    move-result-object v1
    :try_end_11
    .catchall {:try_start_3 .. :try_end_11} :catchall_1b

    monitor-exit v0

    return-object v1

    :cond_13
    :try_start_13
    new-instance v1, Ljava/lang/IllegalStateException;

    const-string v2, "Not initialized yet!"

    invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v1
    :try_end_1b
    .catchall {:try_start_13 .. :try_end_1b} :catchall_1b

    :catchall_1b
    move-exception v1

    monitor-exit v0

    throw v1
.end method

.method public static declared-synchronized e(Lcom/avast/android/notification/NotificationCenterConfig;)Lcom/avast/android/notification/NotificationCenter;
    .registers 8

    const-class v0, Lcom/avast/android/notification/NotificationCenter;

    monitor-enter v0

    :try_start_3
    invoke-static {}, Lcom/avast/android/notification/NotificationCenter;->f()Z

    move-result v1

    if-eqz v1, :cond_f

    invoke-static {}, Lcom/avast/android/notification/NotificationCenter;->a()Lcom/avast/android/notification/NotificationCenter;

    move-result-object p0
    :try_end_d
    .catchall {:try_start_3 .. :try_end_d} :catchall_48

    monitor-exit v0

    return-object p0

    :cond_f
    :try_start_f
    invoke-static {}, Lcom/avast/android/notification/internal/di/DaggerNotificationCenterComponent;->e()Lcom/avast/android/notification/internal/di/DaggerNotificationCenterComponent$Builder;

    move-result-object v1

    new-instance v2, Lcom/avast/android/notification/internal/di/NotificationCenterModule;

    invoke-virtual {p0}, Lcom/avast/android/notification/NotificationCenterConfig;->b()Landroid/content/Context;

    move-result-object v3

    invoke-virtual {p0}, Lcom/avast/android/notification/NotificationCenterConfig;->f()Lcom/avast/android/tracking/Tracker;

    move-result-object v4

    invoke-virtual {p0}, Lcom/avast/android/notification/NotificationCenterConfig;->a()Lcom/avast/android/burger/BurgerInterface;

    move-result-object v5

    invoke-virtual {p0}, Lcom/avast/android/notification/NotificationCenterConfig;->c()Lcom/avast/android/ffl2/Ffl2;

    move-result-object v6

    invoke-direct {v2, v3, v4, v5, v6}, Lcom/avast/android/notification/internal/di/NotificationCenterModule;-><init>(Landroid/content/Context;Lcom/avast/android/tracking/Tracker;Lcom/avast/android/burger/BurgerInterface;Lcom/avast/android/ffl2/Ffl2;)V

    invoke-virtual {v1, v2}, Lcom/avast/android/notification/internal/di/DaggerNotificationCenterComponent$Builder;->g(Lcom/avast/android/notification/internal/di/NotificationCenterModule;)Lcom/avast/android/notification/internal/di/DaggerNotificationCenterComponent$Builder;

    new-instance v2, Lcom/avast/android/notification/internal/config/ConfigProviderModule;

    new-instance v3, Lcom/avast/android/notification/internal/config/ConfigHolder;

    invoke-direct {v3, p0}, Lcom/avast/android/notification/internal/config/ConfigHolder;-><init>(Lcom/avast/android/notification/NotificationCenterConfig;)V

    invoke-direct {v2, v3}, Lcom/avast/android/notification/internal/config/ConfigProviderModule;-><init>(Lcom/avast/android/notification/internal/config/ConfigHolder;)V

    invoke-virtual {v1, v2}, Lcom/avast/android/notification/internal/di/DaggerNotificationCenterComponent$Builder;->f(Lcom/avast/android/notification/internal/config/ConfigProviderModule;)Lcom/avast/android/notification/internal/di/DaggerNotificationCenterComponent$Builder;

    invoke-virtual {v1}, Lcom/avast/android/notification/internal/di/DaggerNotificationCenterComponent$Builder;->e()Lcom/avast/android/notification/internal/di/NotificationCenterComponent;

    move-result-object p0

    invoke-static {p0}, Lcom/avast/android/notification/internal/di/ComponentHolder;->b(Lcom/avast/android/notification/internal/di/NotificationCenterComponent;)V

    const/4 p0, 0x1

    sput-boolean p0, Lcom/avast/android/notification/NotificationCenter;->e:Z

    invoke-static {}, Lcom/avast/android/notification/NotificationCenter;->a()Lcom/avast/android/notification/NotificationCenter;

    move-result-object p0
    :try_end_46
    .catchall {:try_start_f .. :try_end_46} :catchall_48

    monitor-exit v0

    return-object p0

    :catchall_48
    move-exception p0

    monitor-exit v0

    throw p0
.end method

.method public static declared-synchronized f()Z
    .registers 2

    const-class v0, Lcom/avast/android/notification/NotificationCenter;

    monitor-enter v0

    :try_start_3
    sget-boolean v1, Lcom/avast/android/notification/NotificationCenter;->e:Z
    :try_end_5
    .catchall {:try_start_3 .. :try_end_5} :catchall_7

    monitor-exit v0

    return v1

    :catchall_7
    move-exception v1

    monitor-exit v0

    throw v1
.end method


# virtual methods
.method public b()Lcom/avast/android/notification/internal/push/PushNotificationConfigListener;
    .registers 2

    iget-object v0, p0, Lcom/avast/android/notification/NotificationCenter;->c:Ldagger/Lazy;

    invoke-interface {v0}, Ldagger/Lazy;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/avast/android/notification/internal/push/PushNotificationConfigListener;

    return-object v0
.end method

.method public c()Lcom/avast/android/notification/safeguard/SafeGuardFilter;
    .registers 2

    iget-object v0, p0, Lcom/avast/android/notification/NotificationCenter;->d:Ldagger/Lazy;

    invoke-interface {v0}, Ldagger/Lazy;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/avast/android/notification/safeguard/SafeGuardFilter;

    return-object v0
.end method

.method public d()Lcom/avast/android/notification/TrackingNotificationManager;
    .registers 2

    iget-object v0, p0, Lcom/avast/android/notification/NotificationCenter;->b:Ldagger/Lazy;

    invoke-interface {v0}, Ldagger/Lazy;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/avast/android/notification/TrackingNotificationManager;

    return-object v0
.end method

.method public g(Lcom/avast/android/notification/NotificationCenterConfig;)V
    .registers 3

    iget-object v0, p0, Lcom/avast/android/notification/NotificationCenter;->a:Lcom/avast/android/notification/internal/config/ConfigHolder;

    invoke-virtual {v0, p1}, Lcom/avast/android/notification/internal/config/ConfigHolder;->b(Lcom/avast/android/notification/NotificationCenterConfig;)V

    return-void
.end method