diff --git a/lib/core/constants.dart b/lib/core/constants.dart index 1f9ae0754..236419b4d 100644 --- a/lib/core/constants.dart +++ b/lib/core/constants.dart @@ -56,4 +56,4 @@ const double restrictedMaxWidth = 430; const double mobileSmallThreshold = 336; -const deviceLimits = [50, 25, 10, 5, 2, 1]; +const publicLinkDeviceLimits = [50, 25, 10, 5, 2, 1]; diff --git a/lib/ui/sharing/pickers/device_limit_picker_page.dart b/lib/ui/sharing/pickers/device_limit_picker_page.dart index 8982e1f3f..8a9430773 100644 --- a/lib/ui/sharing/pickers/device_limit_picker_page.dart +++ b/lib/ui/sharing/pickers/device_limit_picker_page.dart @@ -79,7 +79,7 @@ class _ItemsWidgetState extends State { void initState() { currentDeviceLimit = widget.collection.publicURLs!.first!.deviceLimit; initialDeviceLimit = currentDeviceLimit; - if (!deviceLimits.contains(currentDeviceLimit)) { + if (!publicLinkDeviceLimits.contains(currentDeviceLimit)) { isCustomLimit = true; } super.initState(); @@ -93,7 +93,7 @@ class _ItemsWidgetState extends State { _menuItemForPicker(initialDeviceLimit), ); } - for (int deviceLimit in deviceLimits) { + for (int deviceLimit in publicLinkDeviceLimits) { items.add( _menuItemForPicker(deviceLimit), );