Browse Source

remove sort option: Oldest

Neeraj Gupta 3 years ago
parent
commit
2a4ea117b5
2 changed files with 0 additions and 7 deletions
  1. 0 6
      lib/ui/collections_gallery_widget.dart
  2. 0 1
      lib/utils/local_settings.dart

+ 0 - 6
lib/ui/collections_gallery_widget.dart

@@ -120,9 +120,6 @@ class _CollectionsGalleryWidgetState extends State<CollectionsGalleryWidget>
         } else if (sortKey == AlbumSortKey.newestPhoto) {
           return second.thumbnail.creationTime
               .compareTo(first.thumbnail.creationTime);
-        } else if (sortKey == AlbumSortKey.oldestPhoto) {
-          return first.thumbnail.creationTime
-              .compareTo(second.thumbnail.creationTime);
         } else {
           return second.collection.updationTime
               .compareTo(first.collection.updationTime);
@@ -407,9 +404,6 @@ class _CollectionsGalleryWidgetState extends State<CollectionsGalleryWidget>
         case AlbumSortKey.newestPhoto:
           text = "Newest";
           break;
-        case AlbumSortKey.oldestPhoto:
-          text = "Oldest";
-          break;
         case AlbumSortKey.lastUpdated:
           text = "Last updated";
       }

+ 0 - 1
lib/utils/local_settings.dart

@@ -3,7 +3,6 @@ import 'package:shared_preferences/shared_preferences.dart';
 enum AlbumSortKey {
   albumName,
   newestPhoto,
-  oldestPhoto,
   lastUpdated,
 }