214 lines
5.8 KiB
Smali
214 lines
5.8 KiB
Smali
.class Lcom/moji/credit/CreditTaskHelper$AnonymousDoneTask;
|
|
.super Lcom/moji/tool/thread/task/MJAsyncTask;
|
|
.source "CreditTaskHelper.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/moji/credit/CreditTaskHelper;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0xa
|
|
name = "AnonymousDoneTask"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/tool/thread/task/MJAsyncTask<",
|
|
"Ljava/lang/Void;",
|
|
"Ljava/lang/Void;",
|
|
"Ljava/lang/Boolean;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private a:Lcom/moji/credit/CreditTaskType;
|
|
|
|
.field private b:Lcom/moji/tool/ToastTool$AddViewListener;
|
|
|
|
.field private c:Ljava/lang/ref/SoftReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/ref/SoftReference<",
|
|
"Landroid/content/Context;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Lcom/moji/credit/CreditTaskType;Lcom/moji/tool/ToastTool$AddViewListener;)V
|
|
.locals 1
|
|
|
|
.line 259
|
|
sget-object v0, Lcom/moji/tool/thread/ThreadPriority;->NORMAL:Lcom/moji/tool/thread/ThreadPriority;
|
|
|
|
invoke-direct {p0, v0}, Lcom/moji/tool/thread/task/MJAsyncTask;-><init>(Lcom/moji/tool/thread/ThreadPriority;)V
|
|
|
|
.line 260
|
|
iput-object p2, p0, Lcom/moji/credit/CreditTaskHelper$AnonymousDoneTask;->a:Lcom/moji/credit/CreditTaskType;
|
|
|
|
.line 261
|
|
iput-object p3, p0, Lcom/moji/credit/CreditTaskHelper$AnonymousDoneTask;->b:Lcom/moji/tool/ToastTool$AddViewListener;
|
|
|
|
.line 262
|
|
new-instance p2, Ljava/lang/ref/SoftReference;
|
|
|
|
invoke-direct {p2, p1}, Ljava/lang/ref/SoftReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object p2, p0, Lcom/moji/credit/CreditTaskHelper$AnonymousDoneTask;->c:Ljava/lang/ref/SoftReference;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected varargs a([Ljava/lang/Void;)Ljava/lang/Boolean;
|
|
.locals 4
|
|
|
|
.line 281
|
|
iget-object p1, p0, Lcom/moji/credit/CreditTaskHelper$AnonymousDoneTask;->c:Ljava/lang/ref/SoftReference;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/ref/SoftReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Landroid/content/Context;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 283
|
|
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 285
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/moji/credit/CreditTaskHelper$AnonymousDoneTask;->a:Lcom/moji/credit/CreditTaskType;
|
|
|
|
invoke-static {p1, v1, v0}, Lcom/moji/credit/CreditTaskHelper;->a(Landroid/content/Context;Lcom/moji/credit/CreditTaskType;Z)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 287
|
|
invoke-static {}, Lcom/moji/credit/CreditTaskHelper;->a()Ljava/util/concurrent/ConcurrentLinkedQueue;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p0, Lcom/moji/credit/CreditTaskHelper$AnonymousDoneTask;->a:Lcom/moji/credit/CreditTaskType;
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/concurrent/ConcurrentLinkedQueue;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
.line 288
|
|
iget-object v0, p0, Lcom/moji/credit/CreditTaskHelper$AnonymousDoneTask;->a:Lcom/moji/credit/CreditTaskType;
|
|
|
|
invoke-static {p1, v0}, Lcom/moji/credit/CreditTaskHelper;->a(Landroid/content/Context;Lcom/moji/credit/CreditTaskType;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 290
|
|
:cond_1
|
|
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
.line 293
|
|
:cond_2
|
|
:goto_0
|
|
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method protected bridge synthetic a([Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
.line 253
|
|
check-cast p1, [Ljava/lang/Void;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/credit/CreditTaskHelper$AnonymousDoneTask;->a([Ljava/lang/Void;)Ljava/lang/Boolean;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method protected a(Ljava/lang/Boolean;)V
|
|
.locals 4
|
|
|
|
.line 267
|
|
invoke-super {p0, p1}, Lcom/moji/tool/thread/task/MJAsyncTask;->a(Ljava/lang/Object;)V
|
|
|
|
.line 268
|
|
iget-object v0, p0, Lcom/moji/credit/CreditTaskHelper$AnonymousDoneTask;->c:Ljava/lang/ref/SoftReference;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/SoftReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Landroid/content/Context;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 272
|
|
:cond_0
|
|
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result p1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 273
|
|
iget-object p1, p0, Lcom/moji/credit/CreditTaskHelper$AnonymousDoneTask;->a:Lcom/moji/credit/CreditTaskType;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
iget-object v3, p0, Lcom/moji/credit/CreditTaskHelper$AnonymousDoneTask;->b:Lcom/moji/tool/ToastTool$AddViewListener;
|
|
|
|
invoke-static {v0, p1, v2, v1, v3}, Lcom/moji/credit/util/CreditToast;->a(Landroid/content/Context;Lcom/moji/credit/CreditTaskType;ZLandroid/view/View$OnClickListener;Lcom/moji/tool/ToastTool$AddViewListener;)V
|
|
|
|
.line 275
|
|
:cond_1
|
|
iput-object v1, p0, Lcom/moji/credit/CreditTaskHelper$AnonymousDoneTask;->b:Lcom/moji/tool/ToastTool$AddViewListener;
|
|
|
|
.line 276
|
|
iget-object p1, p0, Lcom/moji/credit/CreditTaskHelper$AnonymousDoneTask;->c:Ljava/lang/ref/SoftReference;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/ref/SoftReference;->clear()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected bridge synthetic a(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
.line 253
|
|
check-cast p1, Ljava/lang/Boolean;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/credit/CreditTaskHelper$AnonymousDoneTask;->a(Ljava/lang/Boolean;)V
|
|
|
|
return-void
|
|
.end method
|