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

Commit aff7ce66 authored by Jordan Demeulenaere's avatar Jordan Demeulenaere
Browse files

Fix the values of Material You colors in Screenshot test theme (2/2)

Bug: 299159603
Test: atest SystemUIGoogleScreenshotTests
Change-Id: I1f4feb6f8481a2c53b5f605c966a753771499fe2
parent 7463f004
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -48,10 +48,11 @@ import com.android.compose.theme.PlatformTheme
 */
fun SystemUIDialogFactory.create(
    context: Context = this.applicationContext,
    theme: Int = SystemUIDialog.DEFAULT_THEME,
    dismissOnDeviceLock: Boolean = SystemUIDialog.DEFAULT_DISMISS_ON_DEVICE_LOCK,
    content: @Composable (SystemUIDialog) -> Unit,
): ComponentSystemUIDialog {
    val dialog = create(context, dismissOnDeviceLock)
    val dialog = create(context, theme, dismissOnDeviceLock)

    // Create the dialog so that it is properly constructed before we set the Compose content.
    // Otherwise, the ComposeView won't render properly.
+2 −1
Original line number Diff line number Diff line
@@ -34,7 +34,8 @@ class MirroringConfirmationDialog(
    context: Context,
    private val onStartMirroringClickListener: View.OnClickListener,
    private val onCancelMirroring: View.OnClickListener,
) : Dialog(context, R.style.Theme_SystemUI_Dialog) {
    theme: Int = R.style.Theme_SystemUI_Dialog,
) : Dialog(context, theme) {

    private lateinit var mirrorButton: TextView
    private lateinit var dismissButton: TextView
+2 −1
Original line number Diff line number Diff line
@@ -44,7 +44,8 @@ class KeyboardBacklightDialog(
    context: Context,
    initialCurrentLevel: Int,
    initialMaxLevel: Int,
) : Dialog(context, R.style.Theme_SystemUI_Dialog) {
    theme: Int = R.style.Theme_SystemUI_Dialog,
) : Dialog(context, theme) {

    private data class RootProperties(
        val cornerRadius: Float,
+2 −1
Original line number Diff line number Diff line
@@ -48,13 +48,14 @@ constructor(
     */
    fun create(
        context: Context = this.applicationContext,
        theme: Int = SystemUIDialog.DEFAULT_THEME,
        dismissOnDeviceLock: Boolean = SystemUIDialog.DEFAULT_DISMISS_ON_DEVICE_LOCK,
    ): ComponentSystemUIDialog {
        Assert.isMainThread()

        return ComponentSystemUIDialog(
            context,
            SystemUIDialog.DEFAULT_THEME,
            theme,
            dismissOnDeviceLock,
            featureFlags,
            dialogManager,