mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 18:11:53 +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
|
||||
}
|
||||
|
||||
override fun getSummary(): CharSequence? {
|
||||
customSummaryProvider?.let { return it.provideSummary(this) }
|
||||
return super.getSummary()
|
||||
}
|
||||
|
||||
override fun setSummary(summaryResId: Int) {
|
||||
if (summaryResId == 0) {
|
||||
summaryProvider = customSummaryProvider
|
||||
|
Loading…
Reference in New Issue
Block a user