Compare commits

..

No commits in common. "79a3564569c7af64a162cf1d4e10806528e5edae" and "467e3fc0b7a3a5d795893aeb616267fd8f5b46a1" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -305,7 +305,7 @@ class GemtextAdapter(
var offset = 1
if (component.length - offset > 1) {
while ((component.length - offset > 1) and !component.substring(offset).first().isLetterOrDigit()) {
while (!component.substring(offset).first().isLetterOrDigit()) {
offset += 1
}
val index = (component.length - offset) / 2