Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Show app content fixes

Aman Raj Singh Mourya57ec8771fb06
diff --git a/mobile/lib/app.dart b/mobile/lib/app.dart
index 449441484e..e1e76869e5 100644
--- a/mobile/lib/app.dart
+++ b/mobile/lib/app.dart
@@ -20,7 +20,6 @@ import 'package:photos/services/sync_service.dart';
import 'package:photos/ui/tabs/home_widget.dart';
import "package:photos/ui/viewer/actions/file_viewer.dart";
import "package:photos/utils/intent_util.dart";
-import "package:privacy_screen/privacy_screen.dart";
class EnteApp extends StatefulWidget {
final Future<void> Function(String) runBackgroundTask;
@@ -33,8 +32,8 @@ class EnteApp extends StatefulWidget {
this.killBackgroundTask,
this.locale,
this.savedThemeMode, {
- Key? key,
- }) : super(key: key);
+ super.key,
+ });
static void setLocale(BuildContext context, Locale newLocale) {
final state = context.findAncestorStateOfType<_EnteAppState>()!;
@@ -110,12 +109,8 @@ class _EnteAppState extends State<EnteApp> with WidgetsBindingObserver {
darkTheme: dartTheme,
home: AppLifecycleService.instance.mediaExtensionAction.action ==
IntentAction.view
- ? const PrivacyGate(
- child: FileViewer(),
- )
- : const PrivacyGate(
- child: HomeWidget(),
- ),
+ ? const FileViewer()
+ : const HomeWidget(),
debugShowCheckedModeBanner: false,
builder: EasyLoading.init(),
locale: locale,
@@ -134,9 +129,7 @@ class _EnteAppState extends State<EnteApp> with WidgetsBindingObserver {
themeMode: ThemeMode.system,
theme: lightThemeData,
darkTheme: darkThemeData,
- home: const PrivacyGate(
- child: HomeWidget(),
- ),
+ home: const HomeWidget(),
debugShowCheckedModeBanner: false,
builder: EasyLoading.init(),
locale: locale,
diff --git a/mobile/lib/utils/lock_screen_settings.dart b/mobile/lib/utils/lock_screen_settings.dart
index 23d269ecc2..55e1fdfe9c 100644
--- a/mobile/lib/utils/lock_screen_settings.dart
+++ b/mobile/lib/utils/lock_screen_settings.dart
@@ -32,6 +32,7 @@ class LockScreenSettings {
: await PrivacyScreen.instance.enable(
iosOptions: const PrivacyIosOptions(
enablePrivacy: true,
+ lockTrigger: IosLockTrigger.didEnterBackground,
),
androidOptions: const PrivacyAndroidOptions(
enableSecure: true,