|
@@ -5,9 +5,9 @@ import 'package:page_transition/page_transition.dart';
|
|
import 'package:photos/core/configuration.dart';
|
|
import 'package:photos/core/configuration.dart';
|
|
import 'package:photos/models/collection.dart';
|
|
import 'package:photos/models/collection.dart';
|
|
import 'package:photos/models/device_collection.dart';
|
|
import 'package:photos/models/device_collection.dart';
|
|
|
|
+import 'package:photos/models/files_split.dart';
|
|
import 'package:photos/models/gallery_type.dart';
|
|
import 'package:photos/models/gallery_type.dart';
|
|
import 'package:photos/models/magic_metadata.dart';
|
|
import 'package:photos/models/magic_metadata.dart';
|
|
-import 'package:photos/models/selected_file_breakup.dart';
|
|
|
|
import 'package:photos/models/selected_files.dart';
|
|
import 'package:photos/models/selected_files.dart';
|
|
import 'package:photos/services/collections_service.dart';
|
|
import 'package:photos/services/collections_service.dart';
|
|
import 'package:photos/services/hidden_service.dart';
|
|
import 'package:photos/services/hidden_service.dart';
|
|
@@ -47,7 +47,7 @@ class FileSelectionActionWidget extends StatefulWidget {
|
|
|
|
|
|
class _FileSelectionActionWidgetState extends State<FileSelectionActionWidget> {
|
|
class _FileSelectionActionWidgetState extends State<FileSelectionActionWidget> {
|
|
late int currentUserID;
|
|
late int currentUserID;
|
|
- late SelectedFileSplit split;
|
|
|
|
|
|
+ late FilesSplit split;
|
|
late CollectionActions collectionActions;
|
|
late CollectionActions collectionActions;
|
|
|
|
|
|
// _cachedCollectionForSharedLink is primarly used to avoid creating duplicate
|
|
// _cachedCollectionForSharedLink is primarly used to avoid creating duplicate
|
|
@@ -58,7 +58,7 @@ class _FileSelectionActionWidgetState extends State<FileSelectionActionWidget> {
|
|
@override
|
|
@override
|
|
void initState() {
|
|
void initState() {
|
|
currentUserID = Configuration.instance.getUserID()!;
|
|
currentUserID = Configuration.instance.getUserID()!;
|
|
- split = widget.selectedFiles.split(currentUserID);
|
|
|
|
|
|
+ split = FilesSplit.split(widget.selectedFiles.files, currentUserID);
|
|
widget.selectedFiles.addListener(_selectFileChangeListener);
|
|
widget.selectedFiles.addListener(_selectFileChangeListener);
|
|
collectionActions = CollectionActions(CollectionsService.instance);
|
|
collectionActions = CollectionActions(CollectionsService.instance);
|
|
super.initState();
|
|
super.initState();
|
|
@@ -74,7 +74,7 @@ class _FileSelectionActionWidgetState extends State<FileSelectionActionWidget> {
|
|
if (_cachedCollectionForSharedLink != null) {
|
|
if (_cachedCollectionForSharedLink != null) {
|
|
_cachedCollectionForSharedLink = null;
|
|
_cachedCollectionForSharedLink = null;
|
|
}
|
|
}
|
|
- split = widget.selectedFiles.split(currentUserID);
|
|
|
|
|
|
+ split = FilesSplit.split(widget.selectedFiles.files, currentUserID);
|
|
if (mounted) {
|
|
if (mounted) {
|
|
setState(() => {});
|
|
setState(() => {});
|
|
}
|
|
}
|