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; }) as Map;
return AvesEntry.fromMap(result); return AvesEntry.fromMap(result);
} on PlatformException catch (e, stack) { } 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; return null;
} }

View file

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