Browse Source

Fix code analytics

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 1 year ago
parent
commit
d492bce313

+ 2 - 1
app/src/main/java/com/nextcloud/ui/composeActivity/ComposeActivity.kt

@@ -60,6 +60,7 @@ class ComposeActivity : DrawerActivity() {
         lateinit var schemeFlow: MutableStateFlow<ColorScheme>
         lateinit var schemeFlow: MutableStateFlow<ColorScheme>
     }
     }
 
 
+    @Suppress("DEPRECATION")
     override fun onCreate(savedInstanceState: Bundle?) {
     override fun onCreate(savedInstanceState: Bundle?) {
         super.onCreate(savedInstanceState)
         super.onCreate(savedInstanceState)
         binding = ActivityComposeBinding.inflate(layoutInflater)
         binding = ActivityComposeBinding.inflate(layoutInflater)
@@ -74,7 +75,7 @@ class ComposeActivity : DrawerActivity() {
 
 
         setupDrawer(menuItemId)
         setupDrawer(menuItemId)
 
 
-        val colorScheme = viewThemeUtils.material.getScheme(this).toColorScheme()
+        val colorScheme = viewThemeUtils.getScheme(this).toColorScheme()
         schemeFlow = MutableStateFlow(colorScheme)
         schemeFlow = MutableStateFlow(colorScheme)
 
 
         binding.composeView.setContent {
         binding.composeView.setContent {