fix: screenshot privacy setting not working on app relaunch (#1900)

This commit is contained in:
Aman Harwara
2022-10-28 19:31:15 +05:30
committed by GitHub
parent 9ac5bd0c27
commit 5a6f4fb35c
5 changed files with 34 additions and 0 deletions

View File

@@ -261,6 +261,14 @@ export class WebApplication extends SNApplication implements WebApplicationInter
setViewportHeightWithFallback()
}
handleInitialMobileScreenshotPrivacy(): void {
if (this.protections.getMobileScreenshotPrivacyEnabled()) {
this.mobileDevice().hideMobileInterfaceFromScreenshots()
} else {
this.mobileDevice().stopHidingMobileInterfaceFromScreenshots()
}
}
async handleMobileLosingFocusEvent(): Promise<void> {
if (this.protections.getMobileScreenshotPrivacyEnabled()) {
this.mobileDevice().stopHidingMobileInterfaceFromScreenshots()