1
0
Fork 0
mirror of https://github.com/Corewala/Buran synced 2024-12-21 23:32:40 +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:
Corewala 2022-05-26 12:12:06 -04:00
parent d5ccf72ccf
commit 1ec24a38a5

View file

@ -483,8 +483,10 @@ class GemActivity : AppCompatActivity() {
is GemState.Requesting -> loadingView(true)
is GemState.NotGeminiRequest -> externalProtocol(state)
is GemState.ResponseError -> {
omniTerm.reset()
showAlert("${GeminiResponse.getCodeString(state.header.code)}:\n\n${state.header.meta}")
if(initialised){
omniTerm.reset()
showAlert("${GeminiResponse.getCodeString(state.header.code)}:\n\n${state.header.meta}")
}
}
is GemState.ClientCertError -> {
certPassword = null