Skip to content

armgit / ente

Public Imported from GitHub
0

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

dismiss wake lock when app is paused or hidden

AmanRajSinghMouryade3c7c88610a
diff --git a/mobile/apps/photos/lib/ui/home/backup_standby_screen.dart b/mobile/apps/photos/lib/ui/home/backup_standby_screen.dart
index d4d616219c..7f3f7fbc11 100644
--- a/mobile/apps/photos/lib/ui/home/backup_standby_screen.dart
+++ b/mobile/apps/photos/lib/ui/home/backup_standby_screen.dart
@@ -64,7 +64,7 @@ class _BackupStandbyScreenState extends State<BackupStandbyScreen>
break;
case AppLifecycleState.paused:
case AppLifecycleState.hidden:
- _setWakeLock(enable: false);
+ _dismiss();
break;
case AppLifecycleState.detached:
break;