minor changes

This commit is contained in:
Thibault Deckers 2022-04-10 11:20:00 +09:00
parent c637c6eb8e
commit f929ade864
2 changed files with 6 additions and 2 deletions

View file

@ -142,7 +142,11 @@ class PlatformMediaFileService implements MediaFileService {
}) as Map;
return AvesEntry.fromMap(result);
} on PlatformException catch (e, stack) {
await reportService.recordError(e, stack);
// do not report issues with simple parameter-less media content
// as it is likely an obsolete Media Store entry
if (!uri.startsWith('content://media/external/') || uri.contains('?')) {
await reportService.recordError(e, stack);
}
}
return null;
}

View file

@ -86,7 +86,7 @@ class _LocationSectionState extends State<LocationSection> {
controller: _mapController,
entries: [entry],
isAnimatingNotifier: widget.isScrollingNotifier,
onUserZoomChange: (zoom) => settings.infoMapZoom = zoom,
onUserZoomChange: (zoom) => settings.infoMapZoom = zoom.roundToDouble(),
onMarkerTap: collection != null ? (_, __, ___) => _openMapPage(context) : null,
openMapPage: collection != null ? _openMapPage : null,
),