From 3e86f8be10f0b5fad7a8305dcf818905ccb1d3a0 Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 23 Jan 2020 21:11:10 +0800 Subject: [PATCH] up --- .../main/java/io/legado/app/ui/config/OtherConfigFragment.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/config/OtherConfigFragment.kt b/app/src/main/java/io/legado/app/ui/config/OtherConfigFragment.kt index 2898f5f17..07a5a641d 100644 --- a/app/src/main/java/io/legado/app/ui/config/OtherConfigFragment.kt +++ b/app/src/main/java/io/legado/app/ui/config/OtherConfigFragment.kt @@ -63,7 +63,9 @@ class OtherConfigFragment : PreferenceFragmentCompat(), .setMinValue(1) .setValue(requireContext().threadCount) .show { - putPrefInt(PreferKey.threadCount, it) + requireContext().putPrefInt(PreferKey.threadCount, it) + findPreference(PreferKey.threadCount)?.summary = + getString(R.string.threads_num, it.toString()) } PreferKey.downloadPath -> FileChooserDialog.show( childFragmentManager,