diff --git a/app/src/main/java/org/thoughtcrime/securesms/ui/theme/MaybeFollowSystemColors.kt b/app/src/main/java/org/thoughtcrime/securesms/ui/theme/MaybeFollowSystemColors.kt index fa0353a1e6..6bb0d3c2ad 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/ui/theme/MaybeFollowSystemColors.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/ui/theme/MaybeFollowSystemColors.kt @@ -8,6 +8,7 @@ fun interface MaybeFollowSystemColors { fun get(): ThemeColors } +@Suppress("FunctionName") fun FollowSystemColors(light: ThemeColors, dark: ThemeColors) = MaybeFollowSystemColors { when { isSystemInDarkTheme() -> dark @@ -15,4 +16,5 @@ fun FollowSystemColors(light: ThemeColors, dark: ThemeColors) = MaybeFollowSyste } } +@Suppress("FunctionName") fun IgnoreSystemColors(colors: ThemeColors) = MaybeFollowSystemColors { colors } diff --git a/app/src/main/java/org/thoughtcrime/securesms/ui/theme/Themes.kt b/app/src/main/java/org/thoughtcrime/securesms/ui/theme/Themes.kt index d1105ccbc1..ec19b3b100 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/ui/theme/Themes.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/ui/theme/Themes.kt @@ -32,7 +32,7 @@ fun SessionMaterialTheme( val context = LocalContext.current val preferences = AppTextSecurePreferences(context) - val jjcachedColors = cachedColors ?: preferences.colors.also { cachedColors = it } + val cachedColors = cachedColors ?: preferences.colors.also { cachedColors = it } SessionMaterialTheme( colors = cachedColors.get(),