Automatic Lint

This commit is contained in:
Syer10
2022-08-26 19:46:09 +00:00
parent 64473f13a9
commit 8e4cb7a189
5 changed files with 6 additions and 4 deletions

View File

@@ -56,12 +56,12 @@ class MainActivity : AppCompatActivity() {
DisposableEffect(systemUiController, useDarkIcons, primaryColor) { DisposableEffect(systemUiController, useDarkIcons, primaryColor) {
systemUiController.setStatusBarColor( systemUiController.setStatusBarColor(
color = primaryColor, color = primaryColor,
darkIcons = useDarkIcons, darkIcons = useDarkIcons
) )
systemUiController.setNavigationBarColor( systemUiController.setNavigationBarColor(
color = Color.Transparent, color = Color.Transparent,
darkIcons = useDarkIcons, darkIcons = useDarkIcons,
navigationBarContrastEnforced = false, navigationBarContrastEnforced = false
) )
onDispose {} onDispose {}

View File

@@ -132,4 +132,4 @@ fun BottomNavigation(
content = content content = content
) )
} }
} }

View File

@@ -281,6 +281,7 @@ actual val WindowInsets.Companion.areSystemBarsVisible: Boolean
@Composable @Composable
@NonRestartableComposable @NonRestartableComposable
get() = areSystemBarsVisible get() = areSystemBarsVisible
/** /**
* `true` when the [tappableElement] is being displayed, irrespective of * `true` when the [tappableElement] is being displayed, irrespective of
* whether they intersects with the Window. * whether they intersects with the Window.

View File

@@ -256,6 +256,7 @@ expect val WindowInsets.Companion.areSystemBarsVisible: Boolean
@Composable @Composable
@NonRestartableComposable @NonRestartableComposable
get get
/** /**
* `true` when the [tappableElement] is being displayed, irrespective of * `true` when the [tappableElement] is being displayed, irrespective of
* whether they intersects with the Window. * whether they intersects with the Window.

View File

@@ -24,7 +24,6 @@ object EmptyWindowInsets : WindowInsets {
override fun getTop(density: Density): Int = 0 override fun getTop(density: Density): Int = 0
} }
/** /**
* For the [WindowInsetsCompat.Type.captionBar]. * For the [WindowInsetsCompat.Type.captionBar].
*/ */
@@ -268,6 +267,7 @@ actual val WindowInsets.Companion.areSystemBarsVisible: Boolean
@Composable @Composable
@NonRestartableComposable @NonRestartableComposable
get() = false get() = false
/** /**
* `true` when the [tappableElement] is being displayed, irrespective of * `true` when the [tappableElement] is being displayed, irrespective of
* whether they intersects with the Window. * whether they intersects with the Window.