Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
feat: always blur application in multitasking view
Browse files Browse the repository at this point in the history
  • Loading branch information
antsgar committed Feb 24, 2021
1 parent 1ed7d80 commit b603665
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/lib/application_state.ts
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit b603665

Please sign in to comment.