Skip to content

Commit

Permalink
[auth] don't use privacy screen for desktop (#2680)
Browse files Browse the repository at this point in the history
## Description

## Tests
  • Loading branch information
prateekmedia authored Aug 12, 2024
2 parents cfadd70 + 5468205 commit 2274be9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions auth/lib/utils/lock_screen_settings.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import "dart:convert";
import "dart:typed_data";

import "package:ente_auth/utils/platform_util.dart";
import "package:ente_crypto_dart/ente_crypto_dart.dart";
import "package:flutter_secure_storage/flutter_secure_storage.dart";
import "package:privacy_screen/privacy_screen.dart";
Expand Down Expand Up @@ -39,6 +40,7 @@ class LockScreenSettings {
}

Future<void> setHideAppContent(bool hideContent) async {
if (PlatformUtil.isDesktop()) return;
!hideContent
? PrivacyScreen.instance.disable()
: await PrivacyScreen.instance.enable(
Expand Down
2 changes: 1 addition & 1 deletion auth/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: ente_auth
description: ente two-factor authenticator
version: 3.1.0+320
version: 3.1.1+321
publish_to: none

environment:
Expand Down

0 comments on commit 2274be9

Please sign in to comment.