mirror of
https://github.com/standardnotes/mobile.git
synced 2026-02-05 05:21:26 -05:00
feat: always blur application in multitasking view
This commit is contained in:
@@ -256,19 +256,10 @@ export class ApplicationState extends ApplicationService {
|
||||
}
|
||||
|
||||
public async setScreenshotPrivacy() {
|
||||
const hasBiometrics = await this.application.hasBiometrics();
|
||||
const hasPasscode = this.application.hasPasscode();
|
||||
const hasImmediateLock =
|
||||
(hasBiometrics && this.biometricsTiming === UnlockTiming.Immediately) ||
|
||||
(hasPasscode && this.passcodeTiming === UnlockTiming.Immediately);
|
||||
if (Platform.OS === 'ios') {
|
||||
enabled(hasImmediateLock);
|
||||
enabled(true);
|
||||
} else {
|
||||
if (hasImmediateLock) {
|
||||
FlagSecure.activate();
|
||||
} else {
|
||||
FlagSecure.deactivate();
|
||||
}
|
||||
FlagSecure.activate();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user