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 {