mirror of
https://github.com/openharmony/applications_permission_manager.git
synced 2026-07-19 15:13:33 -04:00
cherry pick 73cc7fa from https://gitee.com/tz_lws/applications_permission_manager/pulls/354
安全控件适配多display场景 Signed-off-by: fanchenxuan <fanchenxuan@huawei.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user