192 lines
4.8 KiB
Smali
192 lines
4.8 KiB
Smali
.class public final Lcom/discord/utilities/textprocessing/Spans$createHeaderClassSpanProvider$1;
|
|
.super Lm/u/b/k;
|
|
.source "Spans.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/utilities/textprocessing/Spans;->createHeaderClassSpanProvider(Landroid/content/Context;)Lkotlin/jvm/functions/Function1;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lm/u/b/k;",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"Ljava/lang/String;",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $context:Landroid/content/Context;
|
|
|
|
.field public final synthetic $marginTopPx:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;I)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/utilities/textprocessing/Spans$createHeaderClassSpanProvider$1;->$context:Landroid/content/Context;
|
|
|
|
iput p2, p0, Lcom/discord/utilities/textprocessing/Spans$createHeaderClassSpanProvider$1;->$marginTopPx:I
|
|
|
|
const/4 p1, 0x1
|
|
|
|
invoke-direct {p0, p1}, Lm/u/b/k;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Ljava/lang/String;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/utilities/textprocessing/Spans$createHeaderClassSpanProvider$1;->invoke(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final invoke(Ljava/lang/String;)Ljava/lang/Object;
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
sparse-switch v1, :sswitch_data_0
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_0
|
|
const-string v1, "fixed"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
new-instance v0, Landroid/text/style/TextAppearanceSpan;
|
|
|
|
iget-object p1, p0, Lcom/discord/utilities/textprocessing/Spans$createHeaderClassSpanProvider$1;->$context:Landroid/content/Context;
|
|
|
|
const v1, 0x7f130135
|
|
|
|
invoke-direct {v0, p1, v1}, Landroid/text/style/TextAppearanceSpan;-><init>(Landroid/content/Context;I)V
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_1
|
|
const-string v1, "added"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
new-instance v0, Landroid/text/style/TextAppearanceSpan;
|
|
|
|
iget-object p1, p0, Lcom/discord/utilities/textprocessing/Spans$createHeaderClassSpanProvider$1;->$context:Landroid/content/Context;
|
|
|
|
const v1, 0x7f130134
|
|
|
|
invoke-direct {v0, p1, v1}, Landroid/text/style/TextAppearanceSpan;-><init>(Landroid/content/Context;I)V
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_2
|
|
const-string v1, "improved"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
new-instance v0, Landroid/text/style/TextAppearanceSpan;
|
|
|
|
iget-object p1, p0, Lcom/discord/utilities/textprocessing/Spans$createHeaderClassSpanProvider$1;->$context:Landroid/content/Context;
|
|
|
|
const v1, 0x7f130136
|
|
|
|
invoke-direct {v0, p1, v1}, Landroid/text/style/TextAppearanceSpan;-><init>(Landroid/content/Context;I)V
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_3
|
|
const-string v1, "progress"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
new-instance v0, Landroid/text/style/TextAppearanceSpan;
|
|
|
|
iget-object p1, p0, Lcom/discord/utilities/textprocessing/Spans$createHeaderClassSpanProvider$1;->$context:Landroid/content/Context;
|
|
|
|
const v1, 0x7f130137
|
|
|
|
invoke-direct {v0, p1, v1}, Landroid/text/style/TextAppearanceSpan;-><init>(Landroid/content/Context;I)V
|
|
|
|
goto :goto_0
|
|
|
|
:sswitch_4
|
|
const-string v1, "marginTop"
|
|
|
|
invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
new-instance v0, Lcom/discord/utilities/spans/VerticalPaddingSpan;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iget v1, p0, Lcom/discord/utilities/textprocessing/Spans$createHeaderClassSpanProvider$1;->$marginTopPx:I
|
|
|
|
invoke-direct {v0, p1, v1}, Lcom/discord/utilities/spans/VerticalPaddingSpan;-><init>(II)V
|
|
|
|
:cond_0
|
|
:goto_0
|
|
return-object v0
|
|
|
|
:cond_1
|
|
const-string p1, "className"
|
|
|
|
invoke-static {p1}, Lm/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:sswitch_data_0
|
|
.sparse-switch
|
|
-0x3e464339 -> :sswitch_4
|
|
-0x3bab3dd3 -> :sswitch_3
|
|
-0x1903e414 -> :sswitch_2
|
|
0x585e100 -> :sswitch_1
|
|
0x5cee774 -> :sswitch_0
|
|
.end sparse-switch
|
|
.end method
|