安全控件适配多display场景

Signed-off-by: fanchenxuan <fanchenxuan@huawei.com>
This commit is contained in:
fanchenxuan
2024-11-26 17:28:18 +08:00
parent e3438a3063
commit aefde40968
2 changed files with 3 additions and 1 deletions
@@ -42,7 +42,8 @@ export default class SecurityExtensionAbility extends extension {
console.info(TAG + 'want: ' + JSON.stringify(want));
try {
let dis = display.getDefaultDisplaySync();
let displayId = want.parameters['ohos.display.id'];
let dis = display.getDisplayByIdSync(displayId);
let navigationBarRect = {
left: 0,
top: 0,
@@ -141,6 +141,7 @@ struct SecurityDialog {
})
}
}
.pixelRound({ start: PixelRoundCalcPolicy.NO_FORCE_ROUND, end: PixelRoundCalcPolicy.NO_FORCE_ROUND })
.backgroundColor($r('app.color.icon_bg'))
.borderRadius(Constants.SECURITY_ICON_WIDTH * 14 / 54)
Column() { // content