ab.smali
.class final Lcom/vivo/push/c/ab;
.super Ljava/lang/Object;
.source "OnNotificationArrivedReceiveTask.java"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
.field final synthetic a:Lcom/vivo/push/e/a;
.field final synthetic b:Lcom/vivo/push/b/q;
.field final synthetic c:Lcom/vivo/push/c/aa;
# direct methods
.method constructor <init>(Lcom/vivo/push/c/aa;Lcom/vivo/push/e/a;Lcom/vivo/push/b/q;)V
.registers 4
.prologue
.line 117
iput-object p1, p0, Lcom/vivo/push/c/ab;->c:Lcom/vivo/push/c/aa;
iput-object p2, p0, Lcom/vivo/push/c/ab;->a:Lcom/vivo/push/e/a;
iput-object p3, p0, Lcom/vivo/push/c/ab;->b:Lcom/vivo/push/b/q;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final run()V
.registers 11
.prologue
const/4 v8, 0x2
const/4 v7, 0x0
const/4 v9, 0x1
.line 121
iget-object v0, p0, Lcom/vivo/push/c/ab;->c:Lcom/vivo/push/c/aa;
iget-object v0, v0, Lcom/vivo/push/c/aa;->a:Lcom/vivo/push/sdk/a;
iget-object v1, p0, Lcom/vivo/push/c/ab;->c:Lcom/vivo/push/c/aa;
invoke-static {v1}, Lcom/vivo/push/c/aa;->a(Lcom/vivo/push/c/aa;)Landroid/content/Context;
move-result-object v1
iget-object v2, p0, Lcom/vivo/push/c/ab;->a:Lcom/vivo/push/e/a;
invoke-static {v2}, Lcom/vivo/push/util/r;->a(Lcom/vivo/push/e/a;)Lcom/vivo/push/e/b;
move-result-object v2
invoke-interface {v0, v1, v2}, Lcom/vivo/push/sdk/a;->b(Landroid/content/Context;Lcom/vivo/push/e/b;)Z
move-result v0
.line 122
if-eqz v0, :cond_22
.line 123
const-string v0, "OnNotificationArrivedTask"
const-string/jumbo v1, "this notification has Intercept"
invoke-static {v0, v1}, Lcom/vivo/push/util/q;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 148
:goto_21
return-void
.line 126
:cond_22
new-instance v1, Lcom/vivo/push/util/k;
iget-object v0, p0, Lcom/vivo/push/c/ab;->c:Lcom/vivo/push/c/aa;
invoke-static {v0}, Lcom/vivo/push/c/aa;->b(Lcom/vivo/push/c/aa;)Landroid/content/Context;
move-result-object v2
iget-object v3, p0, Lcom/vivo/push/c/ab;->a:Lcom/vivo/push/e/a;
iget-object v0, p0, Lcom/vivo/push/c/ab;->b:Lcom/vivo/push/b/q;
invoke-virtual {v0}, Lcom/vivo/push/b/q;->c()J
move-result-wide v4
iget-object v0, p0, Lcom/vivo/push/c/ab;->c:Lcom/vivo/push/c/aa;
iget-object v0, v0, Lcom/vivo/push/c/aa;->a:Lcom/vivo/push/sdk/a;
iget-object v6, p0, Lcom/vivo/push/c/ab;->c:Lcom/vivo/push/c/aa;
invoke-static {v6}, Lcom/vivo/push/c/aa;->c(Lcom/vivo/push/c/aa;)Landroid/content/Context;
move-result-object v6
invoke-interface {v0, v6}, Lcom/vivo/push/sdk/a;->a(Landroid/content/Context;)Z
move-result v6
invoke-direct/range {v1 .. v6}, Lcom/vivo/push/util/k;-><init>(Landroid/content/Context;Lcom/vivo/push/e/a;JZ)V
.line 128
iget-object v0, p0, Lcom/vivo/push/c/ab;->a:Lcom/vivo/push/e/a;
invoke-virtual {v0}, Lcom/vivo/push/e/a;->c()Z
move-result v3
.line 129
iget-object v0, p0, Lcom/vivo/push/c/ab;->a:Lcom/vivo/push/e/a;
invoke-virtual {v0}, Lcom/vivo/push/e/a;->m()Ljava/lang/String;
move-result-object v0
.line 130
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v2
if-eqz v2, :cond_db
.line 131
iget-object v0, p0, Lcom/vivo/push/c/ab;->a:Lcom/vivo/push/e/a;
invoke-virtual {v0}, Lcom/vivo/push/e/a;->j()Ljava/lang/String;
move-result-object v0
move-object v2, v0
.line 133
:goto_5c
invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_a6
.line 134
const-string v0, "OnNotificationArrivedTask"
new-instance v4, Ljava/lang/StringBuilder;
const-string/jumbo v5, "showCode="
invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v4, v3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
move-result-object v4
invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v4
invoke-static {v0, v4}, Lcom/vivo/push/util/q;->c(Ljava/lang/String;Ljava/lang/String;)I
.line 135
if-nez v3, :cond_cf
.line 136
iget-object v0, p0, Lcom/vivo/push/c/ab;->c:Lcom/vivo/push/c/aa;
invoke-static {v0}, Lcom/vivo/push/c/aa;->d(Lcom/vivo/push/c/aa;)Landroid/content/Context;
move-result-object v0
const-string v3, "mobile net unshow"
invoke-static {v0, v3}, Lcom/vivo/push/util/q;->a(Landroid/content/Context;Ljava/lang/String;)V
.line 137
iget-object v0, p0, Lcom/vivo/push/c/ab;->c:Lcom/vivo/push/c/aa;
invoke-static {v0}, Lcom/vivo/push/c/aa;->e(Lcom/vivo/push/c/aa;)Landroid/content/Context;
move-result-object v0
.line 1054
const-string v3, "connectivity"
invoke-virtual {v0, v3}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/net/ConnectivityManager;
.line 1055
invoke-virtual {v0}, Landroid/net/ConnectivityManager;->getActiveNetworkInfo()Landroid/net/NetworkInfo;
move-result-object v0
.line 1057
if-nez v0, :cond_b7
move v0, v7
.line 137
:goto_99
if-ne v0, v9, :cond_a6
.line 138
const/4 v2, 0x0
.line 139
iget-object v0, p0, Lcom/vivo/push/c/ab;->a:Lcom/vivo/push/e/a;
invoke-virtual {v0}, Lcom/vivo/push/e/a;->r()V
.line 140
iget-object v0, p0, Lcom/vivo/push/c/ab;->a:Lcom/vivo/push/e/a;
invoke-virtual {v0}, Lcom/vivo/push/e/a;->s()V
.line 147
:cond_a6
:goto_a6
new-array v0, v8, [Ljava/lang/String;
iget-object v3, p0, Lcom/vivo/push/c/ab;->a:Lcom/vivo/push/e/a;
invoke-virtual {v3}, Lcom/vivo/push/e/a;->k()Ljava/lang/String;
move-result-object v3
aput-object v3, v0, v7
aput-object v2, v0, v9
invoke-virtual {v1, v0}, Lcom/vivo/push/util/k;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;
goto/16 :goto_21
.line 1060
:cond_b7
invoke-virtual {v0}, Landroid/net/NetworkInfo;->getState()Landroid/net/NetworkInfo$State;
move-result-object v3
sget-object v4, Landroid/net/NetworkInfo$State;->CONNECTED:Landroid/net/NetworkInfo$State;
if-eq v3, v4, :cond_c1
move v0, v7
.line 1061
goto :goto_99
.line 1064
:cond_c1
invoke-virtual {v0}, Landroid/net/NetworkInfo;->getType()I
move-result v0
.line 1065
if-ne v0, v9, :cond_c9
move v0, v8
.line 1066
goto :goto_99
.line 1067
:cond_c9
if-nez v0, :cond_cd
move v0, v9
.line 1068
goto :goto_99
.line 1070
:cond_cd
const/4 v0, 0x3
goto :goto_99
.line 143
:cond_cf
iget-object v0, p0, Lcom/vivo/push/c/ab;->c:Lcom/vivo/push/c/aa;
invoke-static {v0}, Lcom/vivo/push/c/aa;->f(Lcom/vivo/push/c/aa;)Landroid/content/Context;
move-result-object v0
const-string v3, "mobile net show"
invoke-static {v0, v3}, Lcom/vivo/push/util/q;->a(Landroid/content/Context;Ljava/lang/String;)V
goto :goto_a6
:cond_db
move-object v2, v0
goto :goto_5c
.end method