Cleanup
This commit is contained in:
parent
a79c4babae
commit
3059008476
@ -212,6 +212,7 @@ class DownloadCache(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// SY <--
|
// SY <--
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -72,6 +72,7 @@ class ExtensionHolder(view: View, val adapter: ExtensionAdapter) :
|
|||||||
}
|
}
|
||||||
} else this
|
} else this
|
||||||
}
|
}
|
||||||
|
|
||||||
// SY <--
|
// SY <--
|
||||||
|
|
||||||
@Suppress("ResourceType")
|
@Suppress("ResourceType")
|
||||||
|
@ -196,16 +196,18 @@ open class IndexController :
|
|||||||
onFilterClicked = {
|
onFilterClicked = {
|
||||||
val allDefault = presenter.sourceFilters == presenter.source.getFilterList()
|
val allDefault = presenter.sourceFilters == presenter.source.getFilterList()
|
||||||
filterSheet?.dismiss()
|
filterSheet?.dismiss()
|
||||||
if (!allDefault) {
|
val json = if (allDefault) {
|
||||||
val json = Json.encodeToString(
|
null
|
||||||
|
} else {
|
||||||
|
Json.encodeToString(
|
||||||
JsonSavedSearch(
|
JsonSavedSearch(
|
||||||
"",
|
"",
|
||||||
"",
|
"",
|
||||||
filterSerializer.serialize(presenter.sourceFilters)
|
filterSerializer.serialize(presenter.sourceFilters)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
onBrowseClick(presenter.query.nullIfBlank(), json)
|
|
||||||
}
|
}
|
||||||
|
onBrowseClick(presenter.query.nullIfBlank(), json)
|
||||||
},
|
},
|
||||||
onResetClicked = {},
|
onResetClicked = {},
|
||||||
onSaveClicked = {},
|
onSaveClicked = {},
|
||||||
|
@ -15,6 +15,7 @@ object LibrarySort {
|
|||||||
// SY -->
|
// SY -->
|
||||||
const val DRAG_AND_DROP = 7
|
const val DRAG_AND_DROP = 7
|
||||||
const val TAG_LIST = 9
|
const val TAG_LIST = 9
|
||||||
|
|
||||||
// SY <--
|
// SY <--
|
||||||
|
|
||||||
@Deprecated("Removed in favor of searching by source")
|
@Deprecated("Removed in favor of searching by source")
|
||||||
|
@ -50,7 +50,6 @@ class MangaInfoButtonsAdapter(
|
|||||||
.onEach {
|
.onEach {
|
||||||
controller.mergeWithAnother()
|
controller.mergeWithAnother()
|
||||||
}
|
}
|
||||||
|
|
||||||
.launchIn(controller.viewScope)
|
.launchIn(controller.viewScope)
|
||||||
}
|
}
|
||||||
// EXH <--
|
// EXH <--
|
||||||
|
@ -56,6 +56,7 @@ object SettingsSearchHelper {
|
|||||||
}
|
}
|
||||||
controllers
|
controllers
|
||||||
}
|
}
|
||||||
|
|
||||||
// SY <--
|
// SY <--
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -40,12 +40,12 @@ class EHentaiDescriptionAdapter(
|
|||||||
|
|
||||||
binding.genre.text =
|
binding.genre.text =
|
||||||
meta.genre?.let { MetadataUtil.getGenreAndColour(itemView.context, it) }
|
meta.genre?.let { MetadataUtil.getGenreAndColour(itemView.context, it) }
|
||||||
?.let {
|
?.let {
|
||||||
binding.genre.setBackgroundColor(it.first)
|
binding.genre.setBackgroundColor(it.first)
|
||||||
it.second
|
it.second
|
||||||
}
|
}
|
||||||
?: meta.genre
|
?: meta.genre
|
||||||
?: itemView.context.getString(R.string.unknown)
|
?: itemView.context.getString(R.string.unknown)
|
||||||
|
|
||||||
binding.visible.text = itemView.context.getString(R.string.is_visible, meta.visible ?: itemView.context.getString(R.string.unknown))
|
binding.visible.text = itemView.context.getString(R.string.is_visible, meta.visible ?: itemView.context.getString(R.string.unknown))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user