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
|
||||
|
||||
import android.net.Uri
|
||||
import corewala.buran.Buran.Companion.DEFAULT_HOME_CAPSULE
|
||||
import java.util.*
|
||||
|
||||
const val GEM_SCHEME = "gemini://"
|
||||
|
@ -82,10 +81,7 @@ class OmniTerm(private val listener: Listener) {
|
|||
}
|
||||
|
||||
fun getCurrent(): String {
|
||||
if (history.isNotEmpty()){
|
||||
return history.last().toString()
|
||||
}
|
||||
return DEFAULT_HOME_CAPSULE
|
||||
return history.last().toString()
|
||||
}
|
||||
|
||||
fun canGoBack(): Boolean {
|
||||
|
|
|
@ -265,11 +265,6 @@ class GemActivity : AppCompatActivity() {
|
|||
else -> hideClientCertShield()
|
||||
}
|
||||
|
||||
gemtext_recycler.adapter = null
|
||||
adapter = AbstractGemtextAdapter.getAdapter(onLink)
|
||||
gemtext_recycler.adapter = adapter
|
||||
refresh()
|
||||
|
||||
val hideCodeBlocks = prefs.getBoolean(
|
||||
"collapse_code_blocks",
|
||||
false
|
||||
|
|
Loading…
Reference in New Issue