133 lines
4 KiB
Smali
133 lines
4 KiB
Smali
.class public final Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker$drainEventsQueue$2;
|
|
.super Ljava/lang/Object;
|
|
.source "AnalyticsUtils.kt"
|
|
|
|
# interfaces
|
|
.implements Lrx/functions/Action1;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;->drainEventsQueue()V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lrx/functions/Action1<",
|
|
"Ljava/lang/Throwable;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $copy:Ljava/util/ArrayList;
|
|
|
|
.field public final synthetic this$0:Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;Ljava/util/ArrayList;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker$drainEventsQueue$2;->this$0:Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;
|
|
|
|
iput-object p2, p0, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker$drainEventsQueue$2;->$copy:Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic call(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
check-cast p1, Ljava/lang/Throwable;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker$drainEventsQueue$2;->call(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final call(Ljava/lang/Throwable;)V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker$drainEventsQueue$2;->$copy:Ljava/util/ArrayList;
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
const/16 v2, 0xa
|
|
|
|
invoke-static {v0, v2}, Le/k/a/c/e/p/g;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
|
|
|
|
move-result v2
|
|
|
|
invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/discord/restapi/RestAPIParams$Science$Event;
|
|
|
|
invoke-virtual {v2}, Lcom/discord/restapi/RestAPIParams$Science$Event;->getType()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget-object v0, Lcom/discord/app/AppLog;->c:Lcom/discord/app/AppLog;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "failed to log events: "
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1, p1}, Lcom/discord/app/AppLog;->w(Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
iget-object p1, p0, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker$drainEventsQueue$2;->this$0:Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;
|
|
|
|
invoke-static {p1}, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;->access$getEventsQueue$p(Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker;)Ljava/util/concurrent/ConcurrentLinkedQueue;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/discord/utilities/analytics/AnalyticsUtils$Tracker$drainEventsQueue$2;->$copy:Ljava/util/ArrayList;
|
|
|
|
invoke-virtual {p1, v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->addAll(Ljava/util/Collection;)Z
|
|
|
|
return-void
|
|
.end method
|