fix(deps): update dependency io.nlopez.compose.rules:detekt to v0.4.15 (#3595)

* Update dependency io.nlopez.compose.rules:detekt to v0.4.15

* Fix new detekt issues

* Fix KtLint

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
This commit is contained in:
renovate[bot] 2024-10-04 16:58:19 +02:00 committed by GitHub
parent 2944879d1b
commit 98d9abecd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 19 additions and 6 deletions

View file

@ -18,6 +18,8 @@ import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.movableContentOf
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
@ -39,6 +41,7 @@ import io.element.android.libraries.designsystem.theme.components.Text
* @param footer optional footer.
* @param content main content.
*/
@Suppress("NAME_SHADOWING")
@Composable
fun HeaderFooterPage(
modifier: Modifier = Modifier,
@ -51,6 +54,10 @@ fun HeaderFooterPage(
footer: @Composable () -> Unit = {},
content: @Composable () -> Unit = {},
) {
val topBar = remember { movableContentOf(topBar) }
val header = remember { movableContentOf(header) }
val footer = remember { movableContentOf(footer) }
val content = remember { movableContentOf(content) }
Scaffold(
modifier = modifier,
topBar = topBar,

View file

@ -28,6 +28,7 @@ import io.element.android.libraries.designsystem.preview.PreviewsDayNight
* closed, [onErrorDismiss] will be invoked. If [onRetry] is not null, a retry button will be displayed.
* - When loading, display a loading dialog using [progressDialog]. Pass empty lambda to disable.
*/
@Suppress("ContentSlotReused") // False positive, the lambdas don't add composable views
@Composable
fun <T> AsyncActionView(
async: AsyncAction<T>,