mirror of
https://github.com/Corewala/Buran
synced 2024-12-22 15:55:35 +00:00
Fixed connection error before initialised
The fix isn't the cleanest, but it stopped throwing a mystery error.
This commit is contained in:
parent
d5ccf72ccf
commit
1ec24a38a5
1 changed files with 4 additions and 2 deletions
|
@ -483,9 +483,11 @@ class GemActivity : AppCompatActivity() {
|
||||||
is GemState.Requesting -> loadingView(true)
|
is GemState.Requesting -> loadingView(true)
|
||||||
is GemState.NotGeminiRequest -> externalProtocol(state)
|
is GemState.NotGeminiRequest -> externalProtocol(state)
|
||||||
is GemState.ResponseError -> {
|
is GemState.ResponseError -> {
|
||||||
|
if(initialised){
|
||||||
omniTerm.reset()
|
omniTerm.reset()
|
||||||
showAlert("${GeminiResponse.getCodeString(state.header.code)}:\n\n${state.header.meta}")
|
showAlert("${GeminiResponse.getCodeString(state.header.code)}:\n\n${state.header.meta}")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
is GemState.ClientCertError -> {
|
is GemState.ClientCertError -> {
|
||||||
certPassword = null
|
certPassword = null
|
||||||
updateClientCertIcon()
|
updateClientCertIcon()
|
||||||
|
|
Loading…
Reference in a new issue