mirror of
https://github.com/Corewala/Buran
synced 2024-12-22 07:42:43 +00:00
Removed broken null check on http proxy
This commit is contained in:
parent
26093144dd
commit
f89f41ae14
1 changed files with 10 additions and 12 deletions
|
@ -919,19 +919,17 @@ class GemActivity : AppCompatActivity() {
|
|||
updateClientCertIcon()
|
||||
|
||||
if(address.startsWith("http://") or address.startsWith("https://")){
|
||||
val httpProxy = prefs.getString("http_proxy", null)
|
||||
val httpProxy = prefs.getString("http_proxy", null) ?: ""
|
||||
|
||||
if (httpProxy != null) {
|
||||
if(
|
||||
httpProxy.isNullOrEmpty()
|
||||
or !httpProxy.startsWith("gemini://")
|
||||
or httpProxy.contains(" ")
|
||||
or !httpProxy.contains(".")
|
||||
){
|
||||
openExternalLink(address)
|
||||
}else{
|
||||
model.request(httpProxy, certPassword, address)
|
||||
}
|
||||
if(
|
||||
httpProxy.isNullOrEmpty()
|
||||
or !httpProxy.startsWith("gemini://")
|
||||
or httpProxy.contains(" ")
|
||||
or !httpProxy.contains(".")
|
||||
){
|
||||
openExternalLink(address)
|
||||
}else{
|
||||
model.request(httpProxy, certPassword, address)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue