Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Increase time taken to show up send logs CTA on loading local photos screen

ashilkn658768f85348
diff --git a/mobile/lib/ui/home/loading_photos_widget.dart b/mobile/lib/ui/home/loading_photos_widget.dart
index 847ffced7e..210c8bd214 100644
--- a/mobile/lib/ui/home/loading_photos_widget.dart
+++ b/mobile/lib/ui/home/loading_photos_widget.dart
@@ -34,13 +34,13 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {
);
final List<String> _messages = [];
late final Timer _didYouKnowTimer;
- final fortySecondsOnScreen = ValueNotifier(false);
+ final oneMinuteOnScreen = ValueNotifier(false);
@override
void initState() {
super.initState();
- Future.delayed(const Duration(seconds: 40), () {
- fortySecondsOnScreen.value = true;
+ Future.delayed(const Duration(seconds: 60), () {
+ oneMinuteOnScreen.value = true;
});
_firstImportEvent =
Bus.instance.on<SyncStatusUpdate>().listen((event) async {
@@ -92,7 +92,7 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {
_firstImportEvent.cancel();
_importProgressEvent.cancel();
_didYouKnowTimer.cancel();
- fortySecondsOnScreen.dispose();
+ oneMinuteOnScreen.dispose();
super.dispose();
}
@@ -191,7 +191,7 @@ class _LoadingPhotosWidgetState extends State<LoadingPhotosWidget> {
appBar: AppBar(
actions: [
ValueListenableBuilder(
- valueListenable: fortySecondsOnScreen,
+ valueListenable: oneMinuteOnScreen,
builder: (context, value, _) {
return value
? IconButton(