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

Commit 5ada82bd authored by Tianfan Zhang's avatar Tianfan Zhang
Browse files

Show Edu UI after cuebar shows.

Bug: 428022845
Test: Manual
Flag: EXEMPT BUGFIX
Change-Id: I71a153acaa7690af3ffec41b51db1cb39d08a8c0
parent 7914382b
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.systemui.ambientcue.ui.compose

import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.MutableTransitionState
import androidx.compose.animation.core.animateFloat
@@ -24,6 +25,10 @@ import androidx.compose.animation.core.animateIntAsState
import androidx.compose.animation.core.keyframes
import androidx.compose.animation.core.rememberTransition
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.scaleIn
import androidx.compose.animation.scaleOut
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
@@ -227,8 +232,14 @@ fun NavBarPill(
            },
    ) {
        if (visible && !expanded && showEducation) {
            AnimatedVisibility(
                visible = enterProgress == 1f,
                enter = fadeIn() + scaleIn(),
                exit = fadeOut() + scaleOut(),
            ) {
                FirstTimeEducation(Alignment.CenterHorizontally, onCloseClick = onCloseEducation)
            }
        }
        Row(
            horizontalArrangement = Arrangement.spacedBy(6.dp),
            verticalAlignment = Alignment.CenterVertically,