mirror of https://github.com/Corewala/Buran
Fixed error in onResume() and removed unnecessary fix in OmniTerm.kt
This commit is contained in:
parent
6d44717ef6
commit
5520e4e02e
|
@ -1,7 +1,6 @@
|
||||||
package corewala.buran
|
package corewala.buran
|
||||||
|
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
import corewala.buran.Buran.Companion.DEFAULT_HOME_CAPSULE
|
|
||||||
import java.util.*
|
import java.util.*
|
||||||
|
|
||||||
const val GEM_SCHEME = "gemini://"
|
const val GEM_SCHEME = "gemini://"
|
||||||
|
@ -82,10 +81,7 @@ class OmniTerm(private val listener: Listener) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getCurrent(): String {
|
fun getCurrent(): String {
|
||||||
if (history.isNotEmpty()){
|
return history.last().toString()
|
||||||
return history.last().toString()
|
|
||||||
}
|
|
||||||
return DEFAULT_HOME_CAPSULE
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun canGoBack(): Boolean {
|
fun canGoBack(): Boolean {
|
||||||
|
|
|
@ -265,11 +265,6 @@ class GemActivity : AppCompatActivity() {
|
||||||
else -> hideClientCertShield()
|
else -> hideClientCertShield()
|
||||||
}
|
}
|
||||||
|
|
||||||
gemtext_recycler.adapter = null
|
|
||||||
adapter = AbstractGemtextAdapter.getAdapter(onLink)
|
|
||||||
gemtext_recycler.adapter = adapter
|
|
||||||
refresh()
|
|
||||||
|
|
||||||
val hideCodeBlocks = prefs.getBoolean(
|
val hideCodeBlocks = prefs.getBoolean(
|
||||||
"collapse_code_blocks",
|
"collapse_code_blocks",
|
||||||
false
|
false
|
||||||
|
|
Loading…
Reference in New Issue