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 832aedc commit 85020cb
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 85020cb

Please sign in to comment.