apkfuckery/com.discord/smali/f/c/a/k1.smali
2020-07-08 16:44:49 +00:00

182 lines
4 KiB
Smali

.class public Lf/c/a/k1;
.super Ljava/lang/Object;
.source "SdkClickHandler.java"
# interfaces
.implements Lf/c/a/u0;
# instance fields
.field public a:Z
.field public b:Lf/c/a/q0;
.field public c:Lf/c/a/j0;
.field public d:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lf/c/a/p;",
">;"
}
.end annotation
.end field
.field public e:Lf/c/a/l0;
.field public f:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference<",
"Lf/c/a/o0;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lf/c/a/o0;Z)V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
xor-int/lit8 p2, p2, 0x1
iput-boolean p2, p0, Lf/c/a/k1;->a:Z
new-instance p2, Ljava/util/ArrayList;
invoke-direct {p2}, Ljava/util/ArrayList;-><init>()V
iput-object p2, p0, Lf/c/a/k1;->d:Ljava/util/List;
new-instance p2, Ljava/lang/ref/WeakReference;
invoke-direct {p2, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
iput-object p2, p0, Lf/c/a/k1;->f:Ljava/lang/ref/WeakReference;
invoke-static {}, Lf/c/a/v;->a()Lf/c/a/q0;
move-result-object p1
iput-object p1, p0, Lf/c/a/k1;->b:Lf/c/a/q0;
sget-object p1, Lf/c/a/j0;->e:Lf/c/a/j0;
iput-object p1, p0, Lf/c/a/k1;->c:Lf/c/a/j0;
new-instance p1, Lf/c/a/l0;
const-string p2, "SdkClickHandler"
const/4 v0, 0x0
invoke-direct {p1, p2, v0}, Lf/c/a/l0;-><init>(Ljava/lang/String;Z)V
iput-object p1, p0, Lf/c/a/k1;->e:Lf/c/a/l0;
return-void
.end method
# virtual methods
.method public final a(Lf/c/a/p;Ljava/lang/String;Ljava/lang/Throwable;)V
.locals 1
invoke-virtual {p1}, Lf/c/a/p;->b()Ljava/lang/String;
move-result-object p1
invoke-static {p2, p3}, Lf/c/a/v1;->k(Ljava/lang/String;Ljava/lang/Throwable;)Ljava/lang/String;
move-result-object p2
const/4 p3, 0x2
new-array p3, p3, [Ljava/lang/Object;
const/4 v0, 0x0
aput-object p1, p3, v0
const/4 p1, 0x1
aput-object p2, p3, p1
const-string p1, "%s. (%s)"
invoke-static {p1, p3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p1
iget-object p2, p0, Lf/c/a/k1;->b:Lf/c/a/q0;
new-array p3, v0, [Ljava/lang/Object;
check-cast p2, Lf/c/a/x0;
invoke-virtual {p2, p1, p3}, Lf/c/a/x0;->b(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
.end method
.method public final b(Lf/c/a/p;)V
.locals 4
iget v0, p1, Lf/c/a/p;->retries:I
const/4 v1, 0x1
add-int/2addr v0, v1
iput v0, p1, Lf/c/a/p;->retries:I
iget-object v2, p0, Lf/c/a/k1;->b:Lf/c/a/q0;
new-array v1, v1, [Ljava/lang/Object;
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
const/4 v3, 0x0
aput-object v0, v1, v3
check-cast v2, Lf/c/a/x0;
const-string v0, "Retrying sdk_click package for the %d time"
invoke-virtual {v2, v0, v1}, Lf/c/a/x0;->b(Ljava/lang/String;[Ljava/lang/Object;)V
iget-object v0, p0, Lf/c/a/k1;->e:Lf/c/a/l0;
new-instance v1, Lf/c/a/k1$a;
invoke-direct {v1, p0, p1}, Lf/c/a/k1$a;-><init>(Lf/c/a/k1;Lf/c/a/p;)V
iget-object p1, v0, Lf/c/a/l0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
invoke-virtual {p1, v1}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
return-void
.end method
.method public c(Lf/c/a/p;)V
.locals 2
iget-object v0, p0, Lf/c/a/k1;->e:Lf/c/a/l0;
new-instance v1, Lf/c/a/k1$a;
invoke-direct {v1, p0, p1}, Lf/c/a/k1$a;-><init>(Lf/c/a/k1;Lf/c/a/p;)V
iget-object p1, v0, Lf/c/a/l0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
invoke-virtual {p1, v1}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
return-void
.end method