Selaa lähdekoodia

Show photo with creationTime in future

Neeraj Gupta 3 vuotta sitten
vanhempi
commit
0bebde580d
2 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 1 0
      lib/core/constants.dart
  2. 1 1
      lib/ui/gallery.dart

+ 1 - 0
lib/core/constants.dart

@@ -12,6 +12,7 @@ const String kRoadmapURL = "https://roadmap.ente.io";
 const int kMicroSecondsInDay = 86400000000;
 const int kAndroid11SDKINT = 30;
 const int kGalleryLoadStartTime = -8000000000000000; // Wednesday, March 6, 1748
+const int kGalleryLoadEndTime = 9223372036854775807; // 2^63 -1
 
 // used to identify which ente file are available in app cache
 const String kSharedMediaIdentifier = 'ente-shared://';

+ 1 - 1
lib/ui/gallery.dart

@@ -114,7 +114,7 @@ class _GalleryState extends State<Gallery> {
       final startTime = DateTime.now().microsecondsSinceEpoch;
       final result = await widget.asyncLoader(
         kGalleryLoadStartTime,
-        DateTime.now().microsecondsSinceEpoch,
+        kGalleryLoadEndTime,
         limit: limit,
       );
       final endTime = DateTime.now().microsecondsSinceEpoch;