Android Back button like home button #212
Nessun revisore
Etichette
Nessuna etichetta
1app
2 apps
accessibility
android
before-beta
bug
duplicate
enhancement
first-contact
fixed
help wanted
infrastructure
invalid
low-priority
must-fix
needs testing
nice-to-have
question
tor
user-feedback
wontfix
Nessuna milestone
Nessuna assegnatario
3 Partecipanti
Data di scadenza
Nessuna data di scadenza impostata.
Dipendenze
Nessuna dipendenza impostata.
Riferimento: cwtch.im/ui#212
Caricamento…
Fai riferimento in un nuovo problema
No description provided.
Delete Branch ":androidBack"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Android back button default behaviour on root pane is to exit that app. That's not ideal so I've captured it and redirected to a home button like behaviour
It might be nice to have it do pane switching when not at root?
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/ui/318
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/ui/319
updated back button handling (not very robust but i'm planning a layout manager change that will break this anyway so it's fine for now):
Keys.onPressed: {
if (event.key == Qt.Key_Back) {
event.accepted = true
if (theStack.currentIndex == theStack.emptyPane) {
androidCwtchActivity.rootHomeButtonHandle()
} else if (theStack.currentIndex == theStack.userProfilePane || theStack.currentIndex == theStack.groupProfilePane) {
theStack.currentIndex = theStack.messagePane
} else {
theStack.currentIndex = theStack.emptyPane
}
}
}
'''
@ -14,2 +15,4 @@
_ func(string) `slot:"updateAndroidNotification"`
_ func() `signal:"rootHomeButtonHandle,auto""`
remove double-double-quote near eol
added
fixed!
thanks
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/ui/333
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/ui/332
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/ui/335
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/ui/334