Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Forgot this in previous commit

laurenspriemd4af7792d43e
diff --git a/mobile/lib/utils/wakelock_util.dart b/mobile/lib/utils/wakelock_util.dart
index de3de62bb3..7e810dc0b3 100644
--- a/mobile/lib/utils/wakelock_util.dart
+++ b/mobile/lib/utils/wakelock_util.dart
@@ -31,4 +31,8 @@ class EnteWakeLock {
);
}
}
+
+ static Future<void> toggle({required bool enable}) async {
+ await WakelockPlus.toggle(enable: enable);
+ }
}