Skip to content

Commit

Permalink
🔥 comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ii2001 committed Sep 26, 2024
1 parent f20f5b1 commit 075b921
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,6 @@ class ImageUtils(
file,
)

// fun processImageUri(uri: Uri): String? =
// try {
// val inputStream = context.contentResolver.openInputStream(uri)
// if (inputStream != null) {
// val tempFile = createTempImageFile()
// tempFile.outputStream().use { outputStream ->
// inputStream.copyTo(outputStream)
// }
// tempFile.absolutePath
// } else {
// null
// }
// } catch (e: IOException) {
// e.printStackTrace()
// null
// }

fun isPermissionGranted(permissions: Array<String>): Boolean =
permissions.all {
ContextCompat.checkSelfPermission(context, it) == PackageManager.PERMISSION_GRANTED
Expand Down

0 comments on commit 075b921

Please sign in to comment.