Skip to content

Commit 94a3035

Browse files
committed
Fix some lints
1 parent da9a4c9 commit 94a3035

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/org/schabi/newpipe/ui/components/menu/LongPressMenu.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ fun LongPressMenu(
132132
val minButtonWidth = 86.dp
133133
val buttonHeight = 86.dp
134134
val headerWidthInButtons = 5 // the header is 5 times as wide as the buttons
135-
val buttonsPerRow = (maxWidth / minButtonWidth).toInt()
135+
val buttonsPerRow = (this.maxWidth / minButtonWidth).toInt()
136136

137137
// the channel icon goes in the menu header, so do not show a button for it
138138
val actions = longPressActions.toMutableList()
@@ -476,8 +476,8 @@ fun LongPressMenuButton(
476476
icon: ImageVector,
477477
text: String,
478478
onClick: () -> Unit,
479-
enabled: Boolean = true,
480479
modifier: Modifier = Modifier,
480+
enabled: Boolean = true,
481481
) {
482482
// TODO possibly make it so that when you long-press on the button, the label appears on-screen
483483
// as a small popup, so in case the label text is cut off the users can still read it in full

0 commit comments

Comments
 (0)