|
@@ -587,7 +587,9 @@ class SettingsActivity : BaseActivity() {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if (("No proxy" == appPreferences.proxyType) || appPreferences.proxyType == null) {
|
|
|
|
|
|
+ if (((context.resources.getString(R.string.nc_no_proxy)) == appPreferences.proxyType) ||
|
|
|
|
+ appPreferences.proxyType == null
|
|
|
|
+ ) {
|
|
hideProxySettings()
|
|
hideProxySettings()
|
|
} else {
|
|
} else {
|
|
showProxySettings()
|
|
showProxySettings()
|
|
@@ -987,7 +989,7 @@ class SettingsActivity : BaseActivity() {
|
|
proxyTypeFlow.collect { newString ->
|
|
proxyTypeFlow.collect { newString ->
|
|
if (newString != state) {
|
|
if (newString != state) {
|
|
state = newString
|
|
state = newString
|
|
- if (("No proxy" == newString) || newString.isEmpty()) {
|
|
|
|
|
|
+ if (((context.resources.getString(R.string.nc_no_proxy)) == newString) || newString.isEmpty()) {
|
|
hideProxySettings()
|
|
hideProxySettings()
|
|
} else {
|
|
} else {
|
|
when (newString) {
|
|
when (newString) {
|