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_LENGTH,
|
||||||
ExifInterface.TAG_IMAGE_WIDTH,
|
ExifInterface.TAG_IMAGE_WIDTH,
|
||||||
ExifInterface.TAG_ORIENTATION,
|
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)) {
|
if (canReadWithExifInterface(sourceMimeType) && canEditExif(targetMimeType)) {
|
||||||
StorageUtils.openInputStream(context, sourceUri)?.use { input ->
|
StorageUtils.openInputStream(context, sourceUri)?.use { input ->
|
||||||
|
|
|
@ -40,6 +40,11 @@ class OptionalEventChannel extends EventChannel {
|
||||||
try {
|
try {
|
||||||
await methodChannel.invokeMethod<void>('cancel', arguments);
|
await methodChannel.invokeMethod<void>('cancel', arguments);
|
||||||
} catch (error, stack) {
|
} catch (error, stack) {
|
||||||
|
if (error is PlatformException && error.message == 'No active stream to cancel') {
|
||||||
|
// ignore
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
FlutterError.reportError(FlutterErrorDetails(
|
FlutterError.reportError(FlutterErrorDetails(
|
||||||
exception: error,
|
exception: error,
|
||||||
stack: stack,
|
stack: stack,
|
||||||
|
|
Loading…
Reference in a new issue