Skip to content

Inefficient use of .then #1240

Closed
Closed
@dabrosch

Description

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()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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