fix(mobile): zero exposure (#28017)

This commit is contained in:
Yaros 2026-04-21 22:47:27 +02:00 committed by GitHub
parent a16d233a0c
commit 70397dc5a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,7 @@ class ExifInfo {
bool get hasCoordinates => latitude != null && longitude != null && latitude != 0 && longitude != 0;
String get exposureTime {
if (exposureSeconds == null) {
if (exposureSeconds == null || exposureSeconds! <= 0 || exposureSeconds!.isNaN) {
return "";
}
if (exposureSeconds! < 1) {