From 0347fd9bf0c5df38d5908e66660b759e8d5ac0a8 Mon Sep 17 00:00:00 2001 From: Stypox Date: Wed, 27 Aug 2025 19:50:27 +0200 Subject: [PATCH] Fix some lints --- .../org/schabi/newpipe/ui/components/menu/LongPressMenu.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/ui/components/menu/LongPressMenu.kt b/app/src/main/java/org/schabi/newpipe/ui/components/menu/LongPressMenu.kt index 69053ffaa..40e0daed6 100644 --- a/app/src/main/java/org/schabi/newpipe/ui/components/menu/LongPressMenu.kt +++ b/app/src/main/java/org/schabi/newpipe/ui/components/menu/LongPressMenu.kt @@ -132,7 +132,7 @@ fun LongPressMenu( val minButtonWidth = 86.dp val buttonHeight = 86.dp val headerWidthInButtons = 5 // the header is 5 times as wide as the buttons - val buttonsPerRow = (maxWidth / minButtonWidth).toInt() + val buttonsPerRow = (this.maxWidth / minButtonWidth).toInt() // the channel icon goes in the menu header, so do not show a button for it val actions = longPressActions.toMutableList() @@ -476,8 +476,8 @@ fun LongPressMenuButton( icon: ImageVector, text: String, onClick: () -> Unit, - enabled: Boolean = true, modifier: Modifier = Modifier, + enabled: Boolean = true, ) { // TODO possibly make it so that when you long-press on the button, the label appears on-screen // as a small popup, so in case the label text is cut off the users can still read it in full