Skip to content

Inefficient use of .then #1240

@dabrosch

Description

@dabrosch

We are unnecessarily using then here: https://github.com/android/compose-samples/blob/5c530249cc5c3a114adf14f8549d3f212e58dd60/Jetsnack/app/src/main/java/com/example/jetsnack/ui/snackdetail/SnackDetail.kt#L296C64-L296C64

This:
modifier = HzPadding.then(Modifier.statusBarsPadding())
should instead be:
modifier = HzPadding.statusBarsPadding()

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions