Skip to content

Commit

Permalink
fix(mobile): the page for adding photos to the album cannot be naviga…
Browse files Browse the repository at this point in the history
…ted back using gestures #16409
  • Loading branch information
ExceptionsOccur authored and ExceptionsOccur committed Mar 3, 2025
1 parent a7faf7b commit cd89e5c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mobile/lib/widgets/asset_grid/immich_asset_grid_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,14 @@ class ImmichAssetGridViewState extends ConsumerState<ImmichAssetGridView> {
Widget build(BuildContext context) {
return PopScope(
canPop: !(widget.selectionActive && _selectedAssets.isNotEmpty),
onPopInvokedWithResult: (didPop, _) => !didPop ? _deselectAll() : null,
onPopInvokedWithResult: (didPop, _) {
if (didPop) {
return;
} else {
_deselectAll();
Navigator.of(context).canPop() ? Navigator.of(context).pop() : null;
}
},
child: Stack(
children: [
AssetDragRegion(
Expand Down

0 comments on commit cd89e5c

Please sign in to comment.