minor fixes
This commit is contained in:
parent
b764bbce9e
commit
61709a1071
2 changed files with 11 additions and 0 deletions
|
@ -423,6 +423,12 @@ abstract class ImageProvider {
|
|||
ExifInterface.TAG_IMAGE_LENGTH,
|
||||
ExifInterface.TAG_IMAGE_WIDTH,
|
||||
ExifInterface.TAG_ORIENTATION,
|
||||
// Thumbnail Offset / Length
|
||||
ExifInterface.TAG_JPEG_INTERCHANGE_FORMAT,
|
||||
ExifInterface.TAG_JPEG_INTERCHANGE_FORMAT_LENGTH,
|
||||
// Exif Image Width / Height
|
||||
ExifInterface.TAG_PIXEL_X_DIMENSION,
|
||||
ExifInterface.TAG_PIXEL_Y_DIMENSION,
|
||||
)
|
||||
if (canReadWithExifInterface(sourceMimeType) && canEditExif(targetMimeType)) {
|
||||
StorageUtils.openInputStream(context, sourceUri)?.use { input ->
|
||||
|
|
|
@ -40,6 +40,11 @@ class OptionalEventChannel extends EventChannel {
|
|||
try {
|
||||
await methodChannel.invokeMethod<void>('cancel', arguments);
|
||||
} catch (error, stack) {
|
||||
if (error is PlatformException && error.message == 'No active stream to cancel') {
|
||||
// ignore
|
||||
return;
|
||||
}
|
||||
|
||||
FlutterError.reportError(FlutterErrorDetails(
|
||||
exception: error,
|
||||
stack: stack,
|
||||
|
|
Loading…
Reference in a new issue