59 lines
2.2 KiB
Java
59 lines
2.2 KiB
Java
|
package com.discord.utilities.textprocessing;
|
||
|
|
||
|
import android.content.Context;
|
||
|
import android.text.style.TextAppearanceSpan;
|
||
|
import com.discord.R;
|
||
|
import com.discord.utilities.spans.VerticalPaddingSpan;
|
||
|
import d0.z.d.m;
|
||
|
import d0.z.d.o;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
/* compiled from: Spans.kt */
|
||
|
public final class Spans$createHeaderClassSpanProvider$1 extends o implements Function1<String, Object> {
|
||
|
public final /* synthetic */ Context $context;
|
||
|
public final /* synthetic */ int $marginTopPx;
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public Spans$createHeaderClassSpanProvider$1(Context context, int i) {
|
||
|
super(1);
|
||
|
this.$context = context;
|
||
|
this.$marginTopPx = i;
|
||
|
}
|
||
|
|
||
|
public final Object invoke(String str) {
|
||
|
m.checkNotNullParameter(str, "className");
|
||
|
switch (str.hashCode()) {
|
||
|
case -1269237627:
|
||
|
if (str.equals("changelogSpecial")) {
|
||
|
return new TextAppearanceSpan(this.$context, R.style.Markdown_Header1_ChangelogSpecial);
|
||
|
}
|
||
|
break;
|
||
|
case -1044792121:
|
||
|
if (str.equals("marginTop")) {
|
||
|
return new VerticalPaddingSpan(0, this.$marginTopPx);
|
||
|
}
|
||
|
break;
|
||
|
case -1001078227:
|
||
|
if (str.equals("progress")) {
|
||
|
return new TextAppearanceSpan(this.$context, R.style.Markdown_Header1_Progress);
|
||
|
}
|
||
|
break;
|
||
|
case -419685396:
|
||
|
if (str.equals("improved")) {
|
||
|
return new TextAppearanceSpan(this.$context, R.style.Markdown_Header1_Improved);
|
||
|
}
|
||
|
break;
|
||
|
case 92659968:
|
||
|
if (str.equals("added")) {
|
||
|
return new TextAppearanceSpan(this.$context, R.style.Markdown_Header1_Added);
|
||
|
}
|
||
|
break;
|
||
|
case 97445748:
|
||
|
if (str.equals("fixed")) {
|
||
|
return new TextAppearanceSpan(this.$context, R.style.Markdown_Header1_Fixed);
|
||
|
}
|
||
|
break;
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
}
|