cwtch.im
/
ui
Archiviert
6
7
Fork 2

Android Back button like home button #212

Zusammengeführt
erinn hat 2 Commits von :androidBack nach master 2019-09-13 23:24:59 +00:00 zusammengeführt
Besitzer

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?

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?
Mitglied

Drone Build Status: success

https://build.openprivacy.ca/cwtch.im/ui/318

Drone Build Status: success https://build.openprivacy.ca/cwtch.im/ui/318
Mitglied

Drone Build Status: success

https://build.openprivacy.ca/cwtch.im/ui/319

Drone Build Status: success https://build.openprivacy.ca/cwtch.im/ui/319
erinn wurde von dan 2019-09-11 18:03:06 +00:00 nicht zugewiesen
erinn wurde von dan 2019-09-11 18:03:10 +00:00 zugewiesen
Besitzer

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
}
}
}
'''

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 } } } '''
erinn hat 2019-09-13 23:15:34 +00:00 Änderungen angefragt
@ -14,2 +15,4 @@
_ func(string) `slot:"updateAndroidNotification"`
_ func() `signal:"rootHomeButtonHandle,auto""`
Besitzer

remove double-double-quote near eol

remove double-double-quote near eol
Autor
Besitzer

added

fixed!

thanks

added fixed! thanks
Mitglied

Drone Build Status: success

https://build.openprivacy.ca/cwtch.im/ui/333

Drone Build Status: success https://build.openprivacy.ca/cwtch.im/ui/333
Mitglied

Drone Build Status: success

https://build.openprivacy.ca/cwtch.im/ui/332

Drone Build Status: success https://build.openprivacy.ca/cwtch.im/ui/332
erinn hat die Änderungen 2019-09-13 23:21:24 +00:00 genehmigt
Mitglied

Drone Build Status: success

https://build.openprivacy.ca/cwtch.im/ui/335

Drone Build Status: success https://build.openprivacy.ca/cwtch.im/ui/335
Mitglied

Drone Build Status: success

https://build.openprivacy.ca/cwtch.im/ui/334

Drone Build Status: success https://build.openprivacy.ca/cwtch.im/ui/334
erinn hat dieses Issue 2019-09-13 23:24:59 +00:00 aus einem Commit referenziert
erinn hat diesen Pull-Request 2019-09-13 23:24:59 +00:00 geschlossen
Dieses Repo ist archiviert. Du kannst Pull-Requests nicht kommentieren.
Keine Beschreibung angegeben.