Fuck motion layout
This commit is contained in:
@@ -12,7 +12,12 @@ import exh.source.nHentaiSourceIds
|
||||
import java.util.Locale
|
||||
|
||||
object SourceTagsUtil {
|
||||
fun getWrappedTag(sourceId: Long, namespace: String? = null, tag: String? = null, fullTag: String? = null): String? {
|
||||
fun getWrappedTag(
|
||||
sourceId: Long?,
|
||||
namespace: String? = null,
|
||||
tag: String? = null,
|
||||
fullTag: String? = null
|
||||
): String? {
|
||||
return if (sourceId == EXH_SOURCE_ID || sourceId == EH_SOURCE_ID || sourceId in nHentaiSourceIds || sourceId in hitomiSourceIds) {
|
||||
val parsed = when {
|
||||
fullTag != null -> parseTag(fullTag)
|
||||
|
||||
@@ -24,7 +24,14 @@ fun ChipGroup.setChipsExtended(items: List<String>?, onClick: (item: String) ->
|
||||
}
|
||||
}
|
||||
|
||||
fun Context.makeSearchChip(item: String, onClick: (item: String) -> Unit = {}, onLongClick: (item: String) -> Unit = {}, sourceId: Long, namespace: String? = null, type: Int? = null): Chip {
|
||||
fun Context.makeSearchChip(
|
||||
item: String,
|
||||
onClick: (item: String) -> Unit = {},
|
||||
onLongClick: (item: String) -> Unit = {},
|
||||
sourceId: Long,
|
||||
namespace: String? = null,
|
||||
type: Int? = null
|
||||
): Chip {
|
||||
return Chip(this).apply {
|
||||
text = item
|
||||
val search = if (namespace != null) {
|
||||
|
||||
Reference in New Issue
Block a user