diff --git a/permissionmanager/src/main/ets/SecurityExtAbility/SecurityExtAbility.ts b/permissionmanager/src/main/ets/SecurityExtAbility/SecurityExtAbility.ts index b16a6a131f777648387145ed1f776a43a3a7a037..8b37c8c1f4638946dcf47188b5b7a2858419f866 100644 --- a/permissionmanager/src/main/ets/SecurityExtAbility/SecurityExtAbility.ts +++ b/permissionmanager/src/main/ets/SecurityExtAbility/SecurityExtAbility.ts @@ -39,7 +39,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, diff --git a/permissionmanager/src/main/ets/pages/securityDialog.ets b/permissionmanager/src/main/ets/pages/securityDialog.ets index 43dc4aee12df3ccbbc3b7bcf48f80fe766fb21be..b0623814e768c63807a6885b5d5ec42220f2f5d5 100644 --- a/permissionmanager/src/main/ets/pages/securityDialog.ets +++ b/permissionmanager/src/main/ets/pages/securityDialog.ets @@ -139,6 +139,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