|
|
@ -157,6 +157,11 @@ class OtherConfigFragment : BasePreferenceFragment(), |
|
|
|
getString(R.string.pre_download_s, value) |
|
|
|
getString(R.string.pre_download_s, value) |
|
|
|
PreferKey.threadCount -> preference.summary = getString(R.string.threads_num, value) |
|
|
|
PreferKey.threadCount -> preference.summary = getString(R.string.threads_num, value) |
|
|
|
PreferKey.webPort -> preference.summary = getString(R.string.web_port_summary, value) |
|
|
|
PreferKey.webPort -> preference.summary = getString(R.string.web_port_summary, value) |
|
|
|
|
|
|
|
PreferKey.defaultCover -> preference.summary = if (value.isNullOrBlank()) { |
|
|
|
|
|
|
|
getString(R.string.select_image) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
value |
|
|
|
|
|
|
|
} |
|
|
|
else -> if (preference is ListPreference) { |
|
|
|
else -> if (preference is ListPreference) { |
|
|
|
val index = preference.findIndexOfValue(value) |
|
|
|
val index = preference.findIndexOfValue(value) |
|
|
|
// Set the summary to reflect the new value. |
|
|
|
// Set the summary to reflect the new value. |
|
|
|