SystemNoticeDialog$1.smali

.class Lcom/sandboxol/blockymods/view/dialog/SystemNoticeDialog$1;
.super Ljava/lang/Object;
.source "SystemNoticeDialog.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/sandboxol/blockymods/view/dialog/wa;-><init>(Landroid/content/Context;Lcom/sandboxol/center/entity/response/ServerNoticeResponse;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/sandboxol/center/entity/response/ServerNoticeResponse;

.field final synthetic b:Landroid/content/Context;

.field final synthetic c:Lcom/sandboxol/blockymods/view/dialog/wa;


# direct methods
.method constructor <init>(Lcom/sandboxol/blockymods/view/dialog/wa;Lcom/sandboxol/center/entity/response/ServerNoticeResponse;Landroid/content/Context;)V
    .registers 4

    .line 1
    iput-object p1, p0, Lcom/sandboxol/blockymods/view/dialog/SystemNoticeDialog$1;->c:Lcom/sandboxol/blockymods/view/dialog/wa;

    iput-object p2, p0, Lcom/sandboxol/blockymods/view/dialog/SystemNoticeDialog$1;->a:Lcom/sandboxol/center/entity/response/ServerNoticeResponse;

    iput-object p3, p0, Lcom/sandboxol/blockymods/view/dialog/SystemNoticeDialog$1;->b:Landroid/content/Context;

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

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .registers 3

    .line 1
    iget-object p1, p0, Lcom/sandboxol/blockymods/view/dialog/SystemNoticeDialog$1;->a:Lcom/sandboxol/center/entity/response/ServerNoticeResponse;

    invoke-virtual {p1}, Lcom/sandboxol/center/entity/response/ServerNoticeResponse;->getButtonUrl()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_17

    .line 2
    iget-object p1, p0, Lcom/sandboxol/blockymods/view/dialog/SystemNoticeDialog$1;->b:Landroid/content/Context;

    iget-object v0, p0, Lcom/sandboxol/blockymods/view/dialog/SystemNoticeDialog$1;->a:Lcom/sandboxol/center/entity/response/ServerNoticeResponse;

    invoke-virtual {v0}, Lcom/sandboxol/center/entity/response/ServerNoticeResponse;->getButtonUrl()Ljava/lang/String;

    move-result-object v0

    invoke-static {p1, v0}, Lcom/sandboxol/center/utils/IntentUtils;->openBrowser(Landroid/content/Context;Ljava/lang/String;)V

    .line 3
    :cond_17
    iget-object p1, p0, Lcom/sandboxol/blockymods/view/dialog/SystemNoticeDialog$1;->a:Lcom/sandboxol/center/entity/response/ServerNoticeResponse;

    invoke-virtual {p1}, Lcom/sandboxol/center/entity/response/ServerNoticeResponse;->isSystemNotice()Z

    move-result p1

    if-eqz p1, :cond_2c

    .line 4
    iget-object p1, p0, Lcom/sandboxol/blockymods/view/dialog/SystemNoticeDialog$1;->c:Lcom/sandboxol/blockymods/view/dialog/wa;

    invoke-virtual {p1}, Lcom/sandboxol/common/dialog/FullScreenDialog;->dismiss()V

    .line 5
    iget-object p1, p0, Lcom/sandboxol/blockymods/view/dialog/SystemNoticeDialog$1;->b:Landroid/content/Context;

    const-string v0, "system_notice_confirm_click"

    invoke-static {p1, v0}, Lcom/sandboxol/common/interfaces/ReportDataAdapter;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    goto :goto_42

    .line 6
    :cond_2c
    iget-object p1, p0, Lcom/sandboxol/blockymods/view/dialog/SystemNoticeDialog$1;->a:Lcom/sandboxol/center/entity/response/ServerNoticeResponse;

    invoke-virtual {p1}, Lcom/sandboxol/center/entity/response/ServerNoticeResponse;->isStopService()Z

    move-result p1

    if-eqz p1, :cond_42

    .line 7
    iget-object p1, p0, Lcom/sandboxol/blockymods/view/dialog/SystemNoticeDialog$1;->b:Landroid/content/Context;

    const-string v0, "service_suspension_notice_confirm_click"

    invoke-static {p1, v0}, Lcom/sandboxol/common/interfaces/ReportDataAdapter;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    .line 8
    invoke-static {}, Landroid/os/Process;->myPid()I

    move-result p1

    invoke-static {p1}, Landroid/os/Process;->killProcess(I)V

    :cond_42
    :goto_42
    return-void
.end method