on xenial help sign in
When dialer-app is focused and the greeter is up, enter emergency call mode
commita12f8e1fd2628886a7c1fcb6188209ea7a5dead5 authorMichael Terry <michael.terry@canonical.com> dateMon 11 Aug 2014, 12:01 (12 years ago) parent6ef3e13
1 file changed+5−1
qml/Shell.qml+5−1
qml/Shell.qml+5−1
@@ -129,7 +129,11 @@ Item {
129129 }
130130
131131 onFocusedApplicationIdChanged: {
132− if (greeter.fakeActiveForApp !== "" && greeter.fakeActiveForApp !== ApplicationManager.focusedApplicationId) {
132+ if (LightDM.Greeter.active && ApplicationManager.focusedApplicationId === "dialer-app") {
133+ // Always let the dialer-app through, by starting an emergency call.
134+ // Likely the user just accepted an incoming call via notification.
135+ lockscreen.emergencyCall()
136+ } else if (greeter.fakeActiveForApp !== "" && greeter.fakeActiveForApp !== ApplicationManager.focusedApplicationId) {
133137 lockscreen.show();
134138 }
135139 panel.indicators.hide();