30 lines
1.3 KiB
Java
30 lines
1.3 KiB
Java
package com.discord.utilities.textprocessing;
|
|
|
|
import android.content.Context;
|
|
import android.text.style.CharacterStyle;
|
|
import android.text.style.StyleSpan;
|
|
import android.text.style.TextAppearanceSpan;
|
|
import com.discord.R;
|
|
import d0.z.d.o;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: Spans.kt */
|
|
public final class Spans$createSpecialHeaderStyleSpanProvider$1 extends o implements Function1<Integer, CharacterStyle> {
|
|
public final /* synthetic */ Context $context;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public Spans$createSpecialHeaderStyleSpanProvider$1(Context context) {
|
|
super(1);
|
|
this.$context = context;
|
|
}
|
|
|
|
public final CharacterStyle invoke(int i) {
|
|
return i != 1 ? i != 4 ? new StyleSpan(3) : new TextAppearanceSpan(this.$context, R.style.Markdown_Header4) : new TextAppearanceSpan(this.$context, R.style.Markdown_Header1_ChangelogSpecial);
|
|
}
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ CharacterStyle invoke(Integer num) {
|
|
return invoke(num.intValue());
|
|
}
|
|
}
|