浏览代码

remove sort option: Oldest

Neeraj Gupta 3 年之前
父节点
当前提交
2a4ea117b5
共有 2 个文件被更改,包括 0 次插入7 次删除
  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) {
         } else if (sortKey == AlbumSortKey.newestPhoto) {
           return second.thumbnail.creationTime
           return second.thumbnail.creationTime
               .compareTo(first.thumbnail.creationTime);
               .compareTo(first.thumbnail.creationTime);
-        } else if (sortKey == AlbumSortKey.oldestPhoto) {
-          return first.thumbnail.creationTime
-              .compareTo(second.thumbnail.creationTime);
         } else {
         } else {
           return second.collection.updationTime
           return second.collection.updationTime
               .compareTo(first.collection.updationTime);
               .compareTo(first.collection.updationTime);
@@ -407,9 +404,6 @@ class _CollectionsGalleryWidgetState extends State<CollectionsGalleryWidget>
         case AlbumSortKey.newestPhoto:
         case AlbumSortKey.newestPhoto:
           text = "Newest";
           text = "Newest";
           break;
           break;
-        case AlbumSortKey.oldestPhoto:
-          text = "Oldest";
-          break;
         case AlbumSortKey.lastUpdated:
         case AlbumSortKey.lastUpdated:
           text = "Last updated";
           text = "Last updated";
       }
       }

+ 0 - 1
lib/utils/local_settings.dart

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