Android Back button like home button #212
Brak recenzentów
Etykiety
Brak etykiety
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
Brak kamienia milowego
Brak przypisanych
Uczestnicy 3
Termin realizacji
Brak ustawionego terminu realizacji.
Zależności
No dependencies set.
Reference: cwtch.im/ui#212
Ładowanie…
Reference in New Issue
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