pull/78/head
kunfei 5 years ago
parent 82bf797996
commit 3e86f8be10
  1. 4
      app/src/main/java/io/legado/app/ui/config/OtherConfigFragment.kt

@ -63,7 +63,9 @@ class OtherConfigFragment : PreferenceFragmentCompat(),
.setMinValue(1) .setMinValue(1)
.setValue(requireContext().threadCount) .setValue(requireContext().threadCount)
.show { .show {
putPrefInt(PreferKey.threadCount, it) requireContext().putPrefInt(PreferKey.threadCount, it)
findPreference<Preference>(PreferKey.threadCount)?.summary =
getString(R.string.threads_num, it.toString())
} }
PreferKey.downloadPath -> FileChooserDialog.show( PreferKey.downloadPath -> FileChooserDialog.show(
childFragmentManager, childFragmentManager,

Loading…
Cancel
Save