|
|
@ -37,6 +37,9 @@ class OtherConfigFragment : BasePreferenceFragment(), |
|
|
|
override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) { |
|
|
|
override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) { |
|
|
|
putPrefBoolean(PreferKey.processText, isProcessTextEnabled()) |
|
|
|
putPrefBoolean(PreferKey.processText, isProcessTextEnabled()) |
|
|
|
addPreferencesFromResource(R.xml.pref_config_other) |
|
|
|
addPreferencesFromResource(R.xml.pref_config_other) |
|
|
|
|
|
|
|
if (AppConfig.isGooglePlay) { |
|
|
|
|
|
|
|
preferenceScreen.removePreferenceRecursively("Cronet") |
|
|
|
|
|
|
|
} |
|
|
|
upPreferenceSummary(PreferKey.userAgent, AppConfig.userAgent) |
|
|
|
upPreferenceSummary(PreferKey.userAgent, AppConfig.userAgent) |
|
|
|
upPreferenceSummary(PreferKey.preDownloadNum, AppConfig.preDownloadNum.toString()) |
|
|
|
upPreferenceSummary(PreferKey.preDownloadNum, AppConfig.preDownloadNum.toString()) |
|
|
|
upPreferenceSummary(PreferKey.threadCount, AppConfig.threadCount.toString()) |
|
|
|
upPreferenceSummary(PreferKey.threadCount, AppConfig.threadCount.toString()) |
|
|
|