mirror of
https://github.com/openharmony/applications_permission_manager.git
synced 2026-07-01 20:44:13 -04:00
modify dialog entrance
Signed-off-by: li-li-wang <wangliliang5@h-partners.com>
This commit is contained in:
@@ -54,14 +54,7 @@ export default class SecurityExtensionAbility extends extension {
|
||||
height: height
|
||||
};
|
||||
let notifyType = want.parameters['ohos.ability.notify.type'] ?? 0;
|
||||
if (notifyType === NotifyType.Toast) {
|
||||
try {
|
||||
startId > 1 && window.findWindow(`SaveButtonTip${startId - 1}`).destroyWindow();
|
||||
} catch (exception) {
|
||||
console.error(`Failed to find the Window. Cause code: ${exception.code}, message: ${exception.message}`);
|
||||
}
|
||||
this.createToast('SaveButtonTip' + startId, window.WindowType.TYPE_SYSTEM_TOAST, navigationBarRect, want);
|
||||
} else {
|
||||
if (notifyType === NotifyType.Dialog) {
|
||||
this.createWindow('SecurityDialog' + startId, window.WindowType.TYPE_DIALOG, navigationBarRect, want);
|
||||
}
|
||||
} catch (exception) {
|
||||
|
||||
Reference in New Issue
Block a user