Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ To know more about breaking changes, see the [Migration Guide][].

- Fix Android 14+ permission requests incorrectly short-circuiting when only part of the requested media access was already granted.
- Fix Darwin video durations being truncated instead of rounded, so `AssetEntity.duration` matches the system album display more closely.
- Fix Darwin `getTitleAsync` returning a null channel result by falling back to an empty string.

## 3.9.0

Expand Down
19 changes: 10 additions & 9 deletions lib/src/internal/plugin.dart
Original file line number Diff line number Diff line change
Expand Up @@ -551,15 +551,16 @@ class PhotoManagerPlugin with BasePlugin, IosPlugin, AndroidPlugin, OhosPlugin {
PMDarwinAVFileType? darwinFileType,
}) async {
if (Platform.isIOS || Platform.isMacOS) {
return await _channel.invokeMethod(
PMConstants.mGetTitleAsync,
<String, dynamic>{
'id': entity.id,
'subtype': subtype,
'isOrigin': isOrigin,
'darwinFileType': darwinFileType?.value ?? 0,
},
);
return await _channel.invokeMethod<String>(
PMConstants.mGetTitleAsync,
<String, dynamic>{
'id': entity.id,
'subtype': subtype,
'isOrigin': isOrigin,
'darwinFileType': darwinFileType?.value ?? 0,
},
) ??
'';
Comment thread
AlexV525 marked this conversation as resolved.
}
return entity.title ?? '';
}
Expand Down
Loading