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

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

Merge "[flexiglass] Key platform theme color changes on assetsSeq instead." into main

parents edcc63b1 8a5489fd
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -49,15 +49,15 @@ fun PlatformTheme(isDarkTheme: Boolean = isSystemInDarkTheme(), content: @Compos
    val context = LocalContext.current

    // Force recreate the color schemes if the theme might have changed.
    val configuration = LocalConfiguration.current
    val currentAssetsSeq = LocalConfiguration.current.assetsSeq
    val colorScheme =
        remember(context, isDarkTheme, configuration) {
        remember(context, isDarkTheme, currentAssetsSeq) {
            TraceUtils.trace("PlatformTheme.colorScheme") {
                platformColorScheme(isDarkTheme, context)
            }
        }
    val androidColorScheme =
        remember(context, isDarkTheme, configuration) {
        remember(context, isDarkTheme, currentAssetsSeq) {
            TraceUtils.trace("PlatformTheme.androidColorScheme") { AndroidColorScheme(context) }
        }