File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
android/src/main/kotlin/com/mr/flutter/plugin/filepicker Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ import java.util.Locale
4040
4141object FileUtils {
4242 private const val TAG = " FilePickerUtils"
43+
4344 // On Android, the CSV mime type from getMimeTypeFromExtension() returns
4445 // "text/comma-separated-values" which is non-standard and doesn't filter
4546 // CSV files in Google Drive.
@@ -355,7 +356,7 @@ object FileUtils {
355356 }
356357
357358 mimes.add(mime)
358- if (allowedExtensions[i] == CSV_EXTENSION ) {
359+ if (allowedExtensions[i] == CSV_EXTENSION ) {
359360 // Add the standard CSV mime type.
360361 mimes.add(CSV_MIME_TYPE )
361362 }
@@ -457,7 +458,11 @@ object FileUtils {
457458 val timeStamp = SimpleDateFormat (" yyyyMMdd_HHmmss" , Locale .getDefault()).format(Date ())
458459 val imageFileName = " IMAGE_" + timeStamp + " _"
459460 val storageDir = context.cacheDir
460- return File .createTempFile(imageFileName, " ." + getCompressFormatBasedFileExtension(compressFormat), storageDir)
461+ return File .createTempFile(
462+ imageFileName,
463+ " ." + getCompressFormatBasedFileExtension(compressFormat),
464+ storageDir
465+ )
461466 }
462467
463468 /* *
You can’t perform that action at this time.
0 commit comments