Skip to content

Commit

Permalink
Remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
planarvoid committed Dec 10, 2024
1 parent 7d8d37c commit 23b1ea1
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ import android.graphics.drawable.Drawable
import android.text.Editable
import android.text.Layout
import android.text.Spanned
import android.util.Log
import android.view.View
import android.view.ViewTreeObserver
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.key
import androidx.compose.ui.Modifier
Expand Down Expand Up @@ -94,13 +92,7 @@ class ComposePlaceholderManager(

val values = composeViewState.collectAsState().value.values.filter { it.visible }.sortedBy { it.topMargin }

LaunchedEffect(values.size) {
Log.d("vojta", "Drawing placeholders: ${values.size}")
}
values.forEach { composeView ->
LaunchedEffect(composeView.uuid) {
Log.d("vojta", "Item: ${composeView.uuid}")
}
Box(
Modifier
.zIndex(9f)
Expand Down Expand Up @@ -360,7 +352,6 @@ class ComposePlaceholderManager(
* Call this method to reload all the placeholders
*/
suspend fun reloadAllPlaceholders() {
// Log.d("vojta", "Reloading placeholders")
val tempPositionToId = positionToId.toList()
tempPositionToId.forEach { placeholder ->
val isValid = positionToIdMutex.withLock {
Expand Down Expand Up @@ -428,8 +419,6 @@ class ComposePlaceholderManager(
val padding = 10
val newLeftPadding = parentTextViewRect.left + padding + aztecText.paddingStart
val newTopPadding = parentTextViewRect.top + padding
// Log.d("vojta", "Current top padding: ${box?.topMargin}")
// Log.d("vojta", "New top padding: ${newTopPadding}")
box?.let { existingView ->
val widthSame = existingView.width == newWidth
val heightSame = existingView.height == newHeight
Expand Down

0 comments on commit 23b1ea1

Please sign in to comment.