on xenial help sign in
Don't use an extra hint to trigger the fullscreen-ing of the pin-pad notification... make it implicit.
commit7436a9304d035d44c40ffbd795272676b0a32de8 authorMirco Müller <mirco.mueller@ubuntu.com> dateWed 27 Nov 2013, 17:53 (13 years ago) parent8229c28
2 files changed+5−2
Notifications/Notification.qml+1−1 Notifications/NotificationMenuItemFactory.qml+4−1
Notifications/Notification.qml+1−1
@@ -35,7 +35,7 @@ Item {
3535 property color color
3636 property bool fullscreen
3737
38− fullscreen: notification.hints["x-canonical-private-fullscreen"] == "true" ? true : false
38+ fullscreen: false
3939 objectName: "background"
4040 implicitHeight: type != Notification.PlaceHolder ? (fullscreen ? notificationList.fullHeight : contentColumn.height + contentColumn.spacing * 4) : 0
4141
Notifications/NotificationMenuItemFactory.qml+4−1
@@ -28,7 +28,6 @@ Loader {
2828 property QtObject menuModel: null
2929 property QtObject menuData: null
3030 property int menuIndex
31− property var notification
3231
3332 property var _map: {
3433 "com.canonical.snapdecision.textfield": textfield,
@@ -44,6 +43,10 @@ Loader {
4443 }
4544 }
4645
46+ Component.onCompleted: {
47+ notification.fullscreen = menuData.type == "com.canonical.snapdecision.pinlock"
48+ }
49+
4750 Component {
4851 id: textfield
4952