on xenial help sign in
Don't use an extra hint to trigger the fullscreen-ing of the pin-pad notification... make it implicit.
7436a93Mirco Müller
Notifications/Notification.qml+1−1
@@ -35,7 +35,7 @@ Item {
35 property color color
35 property color color
36 property bool fullscreen
36 property bool fullscreen
37
37
38− fullscreen: notification.hints["x-canonical-private-fullscreen"] == "true" ? true : false
38+ fullscreen: false
39 objectName: "background"
39 objectName: "background"
40 implicitHeight: type != Notification.PlaceHolder ? (fullscreen ? notificationList.fullHeight : contentColumn.height + contentColumn.spacing * 4) : 0
40 implicitHeight: type != Notification.PlaceHolder ? (fullscreen ? notificationList.fullHeight : contentColumn.height + contentColumn.spacing * 4) : 0
41
41
Notifications/NotificationMenuItemFactory.qml+4−1
@@ -28,7 +28,6 @@ Loader {
28 property QtObject menuModel: null
28 property QtObject menuModel: null
29 property QtObject menuData: null
29 property QtObject menuData: null
30 property int menuIndex
30 property int menuIndex
31− property var notification
32
31
33 property var _map: {
32 property var _map: {
34 "com.canonical.snapdecision.textfield": textfield,
33 "com.canonical.snapdecision.textfield": textfield,
@@ -44,6 +43,10 @@ Loader {
44 }
43 }
45 }
44 }
46
45
46+ Component.onCompleted: {
47+ notification.fullscreen = menuData.type == "com.canonical.snapdecision.pinlock"
48+ }
49+
47 Component {
50 Component {
48 id: textfield
51 id: textfield
49
52