Skip to content
Snippets Groups Projects
Commit 77a9d013 authored by Taras's avatar Taras
Browse files

Remove logs

parent 89f85e75
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,6 @@ import android.graphics.Color
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.Drawable
import android.graphics.drawable.PictureDrawable
import android.util.Log
import android.util.Size
import android.widget.ImageView
import com.bumptech.glide.Glide
......@@ -47,10 +46,6 @@ fun ImageView.loadEncryptedImage(
)
}
content.elementToDecrypt?.let {
Log.d(
"MyLog",
"encrypted $loadWidth / $loadHeight"
)
GlideApp
.with(context)
.load(content)
......
package org.futo.circles.core.utils
import android.util.Log
import android.util.Size
object MediaUtils {
......@@ -12,7 +11,6 @@ object MediaUtils {
fun getThumbSizeWithLimits(viewWidth: Int, originalSize: Size): Size {
val aspectRatio = originalSize.width.toFloat() / originalSize.height.toFloat()
Log.d("MyLog", "--original ${originalSize.width}/${originalSize.height}/${aspectRatio}")
val maxHeight = (1.35 * viewWidth).toInt()
val minHeight = (viewWidth * 0.25).toInt()
......@@ -22,12 +20,7 @@ object MediaUtils {
val height = if (aspectHeight in minHeight..maxHeight) aspectHeight
else if (aspectHeight < minHeight) minHeight else maxHeight
val size = Size(viewWidth, height)
Log.d(
"MyLog",
"output ${size.width}/${size.height}/${size.width.toFloat() / size.height.toFloat()}"
)
return size
return Size(viewWidth, height)
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment