|
|
@ -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, |
|
|
|