mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2025-01-11 13:09:08 +01:00
Fix for auto summaries in preferences not showing
This commit is contained in:
parent
1455f2c2d7
commit
2be38ab151
@ -40,6 +40,11 @@ open class MatPreference @JvmOverloads constructor(
|
|||||||
summaryProvider = customSummaryProvider
|
summaryProvider = customSummaryProvider
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun getSummary(): CharSequence? {
|
||||||
|
customSummaryProvider?.let { return it.provideSummary(this) }
|
||||||
|
return super.getSummary()
|
||||||
|
}
|
||||||
|
|
||||||
override fun setSummary(summaryResId: Int) {
|
override fun setSummary(summaryResId: Int) {
|
||||||
if (summaryResId == 0) {
|
if (summaryResId == 0) {
|
||||||
summaryProvider = customSummaryProvider
|
summaryProvider = customSummaryProvider
|
||||||
|
Loading…
x
Reference in New Issue
Block a user