Fuck motion layout

This commit is contained in:
Jobobby04
2021-08-27 01:17:33 -04:00
parent 77138aba72
commit 14be5c75ee
17 changed files with 1234 additions and 567 deletions
+6 -1
View File
@@ -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)
+8 -1
View File
@@ -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) {