mirror of
https://github.com/Corewala/Buran
synced 2024-12-22 07:42:43 +00:00
Fixed bug where the intended page is replaced by homepage when opened with link
This commit is contained in:
parent
f6f7997c69
commit
324d947330
1 changed files with 18 additions and 9 deletions
|
@ -132,6 +132,7 @@ class GemActivity : AppCompatActivity() {
|
|||
|
||||
binding.gemtextRecycler.adapter = adapter
|
||||
|
||||
if(intent.data == null){
|
||||
model.initialise(
|
||||
home = prefs.getString(
|
||||
"home_capsule",
|
||||
|
@ -141,6 +142,14 @@ class GemActivity : AppCompatActivity() {
|
|||
db = db,
|
||||
onState = this::handleState
|
||||
)
|
||||
}else{
|
||||
model.initialise(
|
||||
home = intent.data.toString(),
|
||||
gemini = Datasource.factory(this, db.history()),
|
||||
db = db,
|
||||
onState = this::handleState
|
||||
)
|
||||
}
|
||||
|
||||
binding.addressEdit.setOnEditorActionListener { _, actionId, _ ->
|
||||
when (actionId) {
|
||||
|
|
Loading…
Reference in a new issue