Android Back button like home button #212

Злито
erinn злито 2 комітів з :androidBack до master 2019-09-13 23:24:59 +00:00
dan прокоментував(ла) 2019-09-06 01:37:27 +00:00
Власник

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?
buildbot прокоментував(ла) 2019-09-06 01:40:30 +00:00
Учасник

Drone Build Status: success

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

Drone Build Status: success https://build.openprivacy.ca/cwtch.im/ui/318
buildbot прокоментував(ла) 2019-09-06 01:43:36 +00:00
Учасник

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 був знятий з призначення dan 2019-09-11 18:03:06 +00:00
erinn був призначений dan 2019-09-11 18:03:10 +00:00
erinn прокоментував(ла) 2019-09-13 23:09:40 +00:00
Власник

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 зробив запит змін 2019-09-13 23:15:34 +00:00
@ -14,2 +15,4 @@
_ func(string) `slot:"updateAndroidNotification"`
_ func() `signal:"rootHomeButtonHandle,auto""`
erinn прокоментував(ла) 2019-09-13 23:14:01 +00:00
Власник

remove double-double-quote near eol

remove double-double-quote near eol
dan прокоментував(ла) 2019-09-13 23:18:28 +00:00
Author
Власник

added

fixed!

thanks

added fixed! thanks
buildbot прокоментував(ла) 2019-09-13 23:20:07 +00:00
Учасник

Drone Build Status: success

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

Drone Build Status: success https://build.openprivacy.ca/cwtch.im/ui/333
buildbot прокоментував(ла) 2019-09-13 23:20:08 +00:00
Учасник

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 зміни затверджено 2019-09-13 23:21:24 +00:00
buildbot прокоментував(ла) 2019-09-13 23:23:16 +00:00
Учасник

Drone Build Status: success

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

Drone Build Status: success https://build.openprivacy.ca/cwtch.im/ui/335
buildbot прокоментував(ла) 2019-09-13 23:23:16 +00:00
Учасник

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 згадано цю задачу в коміті 2019-09-13 23:24:59 +00:00
erinn закрив цей запит на злиття 2019-09-13 23:24:59 +00:00
Це архівний репозитарій. Ви не можете коментувати пулл-реквести.
Немає рецензентів
Етап відсутній
Немає виконавця
3 учасників
Дата завершення
Термін дії не дійсний або знаходиться за межами допустимого діапазону. Будь ласка використовуйте формат 'yyyy-mm-dd'.

Термін виконання не встановлений.

Залежності

No dependencies set.

Reference: cwtch.im/ui#212
No description provided.