nizwar / screen_capture_event

Catch screen capture (Screenshot & Screen Record) event for Android and iOS
https://pub.dev/packages/screen_capture_event
MIT License
9 stars 37 forks source link

remove MimeTypeMap.getFileExtensionFromUrl method [SAMSUNG issue] #24

Open acike opened 1 year ago

acike commented 1 year ago

I discovered that the static method MimeTypeMap.getFileExtensionFromUrl incorrectly retrieves the extension. This became evident when capturing the screen on Samsung Mobile devices, if your app name contains spaces and is added to the saved file name, it can impact the functionality of the getFileExtensionFromUrl method. The presence of spaces in the app name might cause the method to incorrectly extract the file extension. However, on other mobile devices, the application name is not automatically added to the file name