mirror of
https://gitee.com/openharmony/applications_screenlock
synced 2024-11-23 06:19:47 +00:00
#IB2AHZ[Bug]: 弹窗通知显示不全
https://gitee.com/openharmony/applications_screenlock/issues/IB2AHZ 问题根因:1.在mms应用中对新消息中content字段进行了截取操作,只展示15个字段加上省略号代替,导致在发送通知时,通知内容展示不完全。 解决方案:1.在mms应用中取消content字段截取操作。在systemui和screenlock通知栏展示中,对通知消息进行显示行数的限制。只展示4行内容,省下用省略号代替。并修改多条消息折叠状态下消息展示的布局。 是否完成变为规范自检:Y 是否编译且自验证通过:Y 影响的设备与平台范围:oriole; 团队:H Signed-off-by: guobingluo <gbluod@isoftstone.com>
This commit is contained in:
parent
564fb138e4
commit
c48366f0c5
@ -48,7 +48,6 @@ export default class Constants {
|
||||
static SUCCESS_CALLBACK: number = 1;
|
||||
static KEY_INPUT: string = 'inputAction';
|
||||
static FULL_CONTAINER_WIDTH = '100%';
|
||||
static NOT_FULL_WIDTH = '90%';
|
||||
}
|
||||
|
||||
export class NotificationLayout {
|
||||
|
@ -141,7 +141,7 @@ struct ContentList {
|
||||
.lineHeight(Layout.TEXT_LINE_HEIGHT)
|
||||
Blank()
|
||||
.margin({ left: Layout.ITEM_MARGIN, right: Layout.ITEM_MARGIN })
|
||||
}.width(Constants.NOT_FULL_WIDTH)
|
||||
}.width(Constants.FULL_CONTAINER_WIDTH)
|
||||
.margin({ left: Layout.ITEM_MARGIN, right: Layout.ITEM_MARGIN })
|
||||
|
||||
Row({ space: 5 }) {
|
||||
@ -168,7 +168,7 @@ struct ContentList {
|
||||
.visibility((this.remainderNum > 0) ? Visibility.Visible : Visibility.Hidden)
|
||||
.margin({ left: Layout.ITEM_MARGIN, right: Layout.ITEM_MARGIN })
|
||||
}
|
||||
.width(Constants.NOT_FULL_WIDTH)
|
||||
.width(Constants.FULL_CONTAINER_WIDTH)
|
||||
.margin({ left: Layout.ITEM_MARGIN, right: Layout.ITEM_MARGIN })
|
||||
|
||||
Blank()
|
||||
|
Loading…
Reference in New Issue
Block a user