mirror of https://github.com/Corewala/Buran
Compare commits
2 Commits
467e3fc0b7
...
79a3564569
Author | SHA1 | Date |
---|---|---|
Corewala | 79a3564569 | |
Corewala | 4a451ef5ca |
|
@ -512,7 +512,7 @@ class GemActivity : AppCompatActivity() {
|
|||
showAlert("${GeminiResponse.getCodeString(state.header.code)}:\n\n${state.header.meta}")
|
||||
}
|
||||
is GemState.ResponseGemtext -> {
|
||||
if(state.uri.scheme != "gemini://"){
|
||||
if(state.uri.scheme != "gemini"){
|
||||
Snackbar.make(binding.root, getString(R.string.proxied_content), Snackbar.LENGTH_LONG).setAction(getString(R.string.open_original)) {
|
||||
externalProtocol(state.uri)
|
||||
}.show()
|
||||
|
|
|
@ -305,7 +305,7 @@ class GemtextAdapter(
|
|||
var offset = 1
|
||||
|
||||
if (component.length - offset > 1) {
|
||||
while (!component.substring(offset).first().isLetterOrDigit()) {
|
||||
while ((component.length - offset > 1) and !component.substring(offset).first().isLetterOrDigit()) {
|
||||
offset += 1
|
||||
}
|
||||
val index = (component.length - offset) / 2
|
||||
|
|
Loading…
Reference in New Issue