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

Commit c68ee79d authored by Michal Brzezinski's avatar Michal Brzezinski
Browse files

Showing "Done" button only after touchpad gesture is successful

Fixes: 368569344
Test: "Done" only shows up after gesture successfully done
Flag: com.android.systemui.shared.new_touchpad_gestures_tutorial
Change-Id: Icbbd8c5e8bfed89219df0fe424911a102b8d788e
parent 33ffc717
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@ import android.graphics.PorterDuffColorFilter
import androidx.annotation.RawRes
import androidx.annotation.StringRes
import androidx.compose.animation.AnimatedContent
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.compose.animation.core.LinearEasing
@@ -103,9 +104,11 @@ fun ActionTutorialContent(
                modifier = Modifier.weight(1f).padding(top = 8.dp),
            )
        }
        AnimatedVisibility(visible = actionState == FINISHED, enter = fadeIn()) {
            DoneButton(onDoneButtonClicked = onDoneButtonClicked)
        }
    }
}

@Composable
fun TutorialDescription(