25 lines
1.1 KiB
Java
25 lines
1.1 KiB
Java
|
package com.discord.utilities.textprocessing;
|
||
|
|
||
|
import android.text.style.BackgroundColorSpan;
|
||
|
import com.discord.R;
|
||
|
import com.discord.simpleast.core.node.StyleNode;
|
||
|
import com.discord.utilities.color.ColorCompat;
|
||
|
import com.discord.utilities.textprocessing.node.BasicRenderContext;
|
||
|
import d0.z.d.m;
|
||
|
/* compiled from: Rules.kt */
|
||
|
public final class Rules$createInlineCodeRule$2<RC> implements StyleNode.a<RC> {
|
||
|
public static final Rules$createInlineCodeRule$2 INSTANCE = new Rules$createInlineCodeRule$2();
|
||
|
|
||
|
public final Iterable<?> get(RC rc) {
|
||
|
m.checkNotNullParameter(rc, "it");
|
||
|
return d0.t.m.listOf(new BackgroundColorSpan(ColorCompat.getThemedColor(rc.getContext(), (int) R.attr.theme_chat_code)));
|
||
|
}
|
||
|
|
||
|
/* JADX DEBUG: Multi-variable search result rejected for r0v0, resolved type: com.discord.utilities.textprocessing.Rules$createInlineCodeRule$2<RC> */
|
||
|
/* JADX WARN: Multi-variable type inference failed */
|
||
|
@Override // com.discord.simpleast.core.node.StyleNode.a
|
||
|
public /* bridge */ /* synthetic */ Iterable get(Object obj) {
|
||
|
return get((Rules$createInlineCodeRule$2<RC>) ((BasicRenderContext) obj));
|
||
|
}
|
||
|
}
|