diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6118fc9ce..195c78e88 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,6 +8,11 @@ All notable changes to this project will be documented in this file.
- Info: option to set date from other fields
+### Changed
+
+- editing an item orientation or tags automatically sets a metadata date (from the file modified
+ date), if it is missing
+
## [v1.5.9] - 2021-12-22
### Added
@@ -41,7 +46,8 @@ All notable changes to this project will be documented in this file.
### Changed
- Settings: select hidden path directory with a custom file picker instead of the native SAF one
-- Viewer: video cover (before playing the video) is now loaded at original resolution and can be zoomed
+- Viewer: video cover (before playing the video) is now loaded at original resolution and can be
+ zoomed
### Fixed
@@ -79,7 +85,8 @@ All notable changes to this project will be documented in this file.
### Changed
-- use build flavors to match distribution channels: `play` (same as original) and `izzy` (no Crashlytics)
+- use build flavors to match distribution channels: `play` (same as original) and `izzy` (no
+ Crashlytics)
- use 12/24 hour format settings from device to display times
- Privacy: consent request on first launch for installed app inventory access
- use File API to rename and delete items, when possible (primary storage, Android <11)
diff --git a/lib/model/entry.dart b/lib/model/entry.dart
index cfcb70aab..93ef1d4f5 100644
--- a/lib/model/entry.dart
+++ b/lib/model/entry.dart
@@ -648,26 +648,28 @@ class AvesEntry {
await locate(background: background, force: dataTypes.contains(EntryDataType.address), geocoderLocale: geocoderLocale);
}
- Future> rotate({required bool clockwise, required bool persist}) async {
- final newFields = await metadataEditService.rotate(this, clockwise: clockwise);
- if (newFields.isEmpty) return {};
+ Future> _changeOrientation(Future