File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
sample/src/main/kotlin/com.github.dhaval2404.imagepicker/sample/util Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 11package com.github.dhaval2404.imagepicker.sample.util
22
3- import android.content.ContentResolver
43import android.content.Context
54import android.net.Uri
6- import android.provider.OpenableColumns
75import android.util.Log
86import com.github.dhaval2404.imagepicker.util.FileUriUtils
97import 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 ) {
You can’t perform that action at this time.
0 commit comments