Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a032e215 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove unnecessary animation code that causes crashes" into main

parents 4d8d73eb 41ed171f
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -43,10 +43,7 @@ import androidx.compose.ui.unit.IntSize
import androidx.compose.ui.unit.dp
import com.android.compose.animation.scene.ElementKey
import com.android.compose.animation.scene.SceneScope
import com.android.compose.animation.scene.ValueKey
import com.android.compose.animation.scene.animateElementFloatAsState
import com.android.systemui.notifications.ui.composable.Notifications.Form
import com.android.systemui.notifications.ui.composable.Notifications.SharedValues.SharedExpansionValue
import com.android.systemui.statusbar.notification.stack.ui.viewmodel.NotificationsPlaceholderViewModel

object Notifications {
@@ -56,10 +53,6 @@ object Notifications {
        val ShelfSpace = ElementKey("ShelfSpace")
    }

    object SharedValues {
        val SharedExpansionValue = ValueKey("SharedExpansionValue")
    }

    enum class Form {
        HunFromTop,
        Stack,
@@ -181,13 +174,6 @@ private fun SceneScope.NotificationPlaceholder(
                    )
                }
    ) {
        val animatedExpansion by
            animateElementFloatAsState(
                value = if (form == Form.HunFromTop) 0f else 1f,
                key = SharedExpansionValue
            )
        debugLog(viewModel) { "STACK composed: expansion=$animatedExpansion" }

        content {
            if (viewModel.isPlaceholderTextVisible) {
                Box(Modifier.fillMaxSize()) {