Skip to content

Commit 2788406

Browse files
committed
Fixed lint error
1 parent 4e16266 commit 2788406

File tree

1 file changed

+4
-6
lines changed
  • sample/src/main/kotlin/com.github.dhaval2404.imagepicker/sample/util

1 file changed

+4
-6
lines changed

sample/src/main/kotlin/com.github.dhaval2404.imagepicker/sample/util/FileUtil.kt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package com.github.dhaval2404.imagepicker.sample.util
22

3-
import android.content.ContentResolver
43
import android.content.Context
54
import android.net.Uri
6-
import android.provider.OpenableColumns
75
import android.util.Log
86
import com.github.dhaval2404.imagepicker.util.FileUriUtils
97
import com.github.dhaval2404.imagepicker.util.FileUtil
@@ -59,9 +57,9 @@ object FileUtil {
5957
.append(fileSize)
6058
.append("\n\n")
6159

62-
.append("File Name: ")
60+
/*.append("File Name: ")
6361
.append(getFileName(context.contentResolver, uri))
64-
.append("\n\n")
62+
.append("\n\n")*/
6563

6664
.append("File Path: ")
6765
.append(filePath)
@@ -83,7 +81,7 @@ object FileUtil {
8381
}
8482
}
8583

86-
private fun getFileName(contentResolver: ContentResolver, uri: Uri): String? {
84+
/*private fun getFileName(contentResolver: ContentResolver, uri: Uri): String? {
8785
if (ContentResolver.SCHEME_FILE == uri.scheme) {
8886
return File(uri.path).getName()
8987
} else if (ContentResolver.SCHEME_CONTENT == uri.scheme) {
@@ -107,7 +105,7 @@ object FileUtil {
107105
} catch (ex: Exception) {
108106
null
109107
}
110-
}
108+
}*/
111109

112110
fun printFileInfo(file: File?) {
113111
if (file == null) {

0 commit comments

Comments
 (0)