apkfuckery/com.discord/smali/f/a/b/i.smali
2020-09-16 21:45:36 +00:00

85 lines
1.7 KiB
Smali

.class public final Lf/a/b/i;
.super Lk0/n/c/i;
.source "AppLog.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lk0/n/c/i;",
"Lkotlin/jvm/functions/Function1<",
"Lcom/discord/utilities/error/Error;",
"Lkotlin/Unit;",
">;"
}
.end annotation
# static fields
.field public static final d:Lf/a/b/i;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Lf/a/b/i;
invoke-direct {v0}, Lf/a/b/i;-><init>()V
sput-object v0, Lf/a/b/i;->d:Lf/a/b/i;
return-void
.end method
.method public constructor <init>()V
.locals 1
const/4 v0, 0x1
invoke-direct {p0, v0}, Lk0/n/c/i;-><init>(I)V
return-void
.end method
# virtual methods
.method public invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 2
check-cast p1, Lcom/discord/utilities/error/Error;
if-eqz p1, :cond_0
const/4 v0, 0x0
invoke-virtual {p1, v0}, Lcom/discord/utilities/error/Error;->setShouldLog(Z)V
invoke-virtual {p1, v0}, Lcom/discord/utilities/error/Error;->setShowErrorToasts(Z)V
sget-object v0, Lcom/discord/app/AppLog;->d:Lcom/discord/app/AppLog;
invoke-virtual {p1}, Lcom/discord/utilities/error/Error;->getThrowable()Ljava/lang/Throwable;
move-result-object p1
const-string v1, "Checking tombstone error"
invoke-virtual {v0, v1, p1}, Lcom/discord/app/AppLog;->i(Ljava/lang/String;Ljava/lang/Throwable;)V
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object p1
:cond_0
const-string p1, "error"
invoke-static {p1}, Lk0/n/c/h;->c(Ljava/lang/String;)V
const/4 p1, 0x0
throw p1
.end method