Skip to content

Commit ef5445b

Browse files
committed
Refactor: Format code in FileUtils.kt
1 parent 2d2d2e2 commit ef5445b

File tree

1 file changed

+7
-2
lines changed
  • android/src/main/kotlin/com/mr/flutter/plugin/filepicker

1 file changed

+7
-2
lines changed

android/src/main/kotlin/com/mr/flutter/plugin/filepicker/FileUtils.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import java.util.Locale
4040

4141
object 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
/**

0 commit comments

Comments
 (0)