fix: privacy overlay on iOS

This commit is contained in:
Aman Harwara
2022-10-28 20:19:57 +05:30
parent 5a6f4fb35c
commit 5bb923cff3

View File

@@ -262,10 +262,14 @@ export class WebApplication extends SNApplication implements WebApplicationInter
}
handleInitialMobileScreenshotPrivacy(): void {
if (this.platform !== Platform.Android) {
return
}
if (this.protections.getMobileScreenshotPrivacyEnabled()) {
this.mobileDevice().hideMobileInterfaceFromScreenshots()
this.mobileDevice().setAndroidScreenshotPrivacy(true)
} else {
this.mobileDevice().stopHidingMobileInterfaceFromScreenshots()
this.mobileDevice().setAndroidScreenshotPrivacy(false)
}
}