This commit is contained in:
Jobobby04 2021-08-17 16:54:01 -04:00
parent a79c4babae
commit 3059008476
7 changed files with 15 additions and 10 deletions

View File

@ -212,6 +212,7 @@ class DownloadCache(
}
}
}
// SY <--
/**

View File

@ -72,6 +72,7 @@ class ExtensionHolder(view: View, val adapter: ExtensionAdapter) :
}
} else this
}
// SY <--
@Suppress("ResourceType")

View File

@ -196,16 +196,18 @@ open class IndexController :
onFilterClicked = {
val allDefault = presenter.sourceFilters == presenter.source.getFilterList()
filterSheet?.dismiss()
if (!allDefault) {
val json = Json.encodeToString(
val json = if (allDefault) {
null
} else {
Json.encodeToString(
JsonSavedSearch(
"",
"",
filterSerializer.serialize(presenter.sourceFilters)
)
)
onBrowseClick(presenter.query.nullIfBlank(), json)
}
onBrowseClick(presenter.query.nullIfBlank(), json)
},
onResetClicked = {},
onSaveClicked = {},

View File

@ -15,6 +15,7 @@ object LibrarySort {
// SY -->
const val DRAG_AND_DROP = 7
const val TAG_LIST = 9
// SY <--
@Deprecated("Removed in favor of searching by source")

View File

@ -50,7 +50,6 @@ class MangaInfoButtonsAdapter(
.onEach {
controller.mergeWithAnother()
}
.launchIn(controller.viewScope)
}
// EXH <--

View File

@ -56,6 +56,7 @@ object SettingsSearchHelper {
}
controllers
}
// SY <--
/**

View File

@ -40,12 +40,12 @@ class EHentaiDescriptionAdapter(
binding.genre.text =
meta.genre?.let { MetadataUtil.getGenreAndColour(itemView.context, it) }
?.let {
binding.genre.setBackgroundColor(it.first)
it.second
}
?: meta.genre
?: itemView.context.getString(R.string.unknown)
?.let {
binding.genre.setBackgroundColor(it.first)
it.second
}
?: meta.genre
?: itemView.context.getString(R.string.unknown)
binding.visible.text = itemView.context.getString(R.string.is_visible, meta.visible ?: itemView.context.getString(R.string.unknown))