From 302c8539c25348b13ded9b160a2a8c60766c33e4 Mon Sep 17 00:00:00 2001 From: alperozturk Date: Fri, 1 Mar 2024 15:40:29 +0100 Subject: [PATCH] Fix code analytics Signed-off-by: alperozturk --- .../java/com/nextcloud/ui/composeActivity/ComposeActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/nextcloud/ui/composeActivity/ComposeActivity.kt b/app/src/main/java/com/nextcloud/ui/composeActivity/ComposeActivity.kt index e86588fa31e9..8596d979f48a 100644 --- a/app/src/main/java/com/nextcloud/ui/composeActivity/ComposeActivity.kt +++ b/app/src/main/java/com/nextcloud/ui/composeActivity/ComposeActivity.kt @@ -60,6 +60,7 @@ class ComposeActivity : DrawerActivity() { lateinit var schemeFlow: MutableStateFlow } + @Suppress("DEPRECATION") override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) binding = ActivityComposeBinding.inflate(layoutInflater) @@ -74,7 +75,7 @@ class ComposeActivity : DrawerActivity() { setupDrawer(menuItemId) - val colorScheme = viewThemeUtils.material.getScheme(this).toColorScheme() + val colorScheme = viewThemeUtils.getScheme(this).toColorScheme() schemeFlow = MutableStateFlow(colorScheme) binding.composeView.setContent {