I tried it out quickly on Friday but it didn't work and I didn't have time to investigate.
It looks like my mce file went missing somehow, I've replaced it and now the silver button sends all apps to cover state as expected.
I can't make it answer the call though, it simply mutes the ringing for some reason.
I will play some more when I have some free time.
I'm sorry, I forgot to mention that for patching voicecall-ui you should:
killall voicecall-ui
do the patching
run voicecall-ui again
I also prefer to kill mce (it is triggered back right away) after chanign it's configuration
Looks like I'm not very good at giving the full details. here is the full patch to voicecall-ui-jolla
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']--- main.qml.orig 2018-09-19 21:09:09.981556905 +0300
+++ /usr/share/voicecall-ui-jolla/main.qml 2018-09-19 21:09:37.170700448 +0300
@@ -9,6 +9,7 @@
import org.nemomobile.contacts 1.0
import org.nemomobile.notifications 1.0
import org.nemomobile.voicecall 1.0 as VoiceCall
+import org.nemomobile.dbus 2.0 as NemoDBus
import "common/CallLog.js" as CallLog
import "common"
@@ -334,6 +335,24 @@
}
}
+ NemoDBus.DBusInterface {
+ bus: NemoDBus.DBus.SystemBus
+ service: 'com.nokia.mce'
+ path: '/com/nokia/mce/signal'
+ iface: 'com.nokia.mce.signal'
+ signalsEnabled: true
+
+ function power_button_trigger(event) {
+ if (event == "home-key") {
+ if (main.state === 'incoming') {
+ telephony.incomingCall.answer()
+ } else if (telephony.primaryCall) {
+ telephony.primaryCall.hangup()
+ }
+ }
+ }
+ }
+
MessagesInterface { id: messaging }
VoiceCallManager {
[/div]
sorry for the mess.
please comment on how (if at all) did it work for you.