Skip to content

Commit

Permalink
fix: make detekt happy
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesarich committed Dec 14, 2024
1 parent 9986408 commit 9ff811b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 0 additions & 2 deletions app/src/main/java/com/geeksville/mesh/service/MeshService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -684,8 +684,6 @@ class MeshService : Service(), Logging {
packetRepository.get().insertReply(reply)
}



private fun rememberDataPacket(dataPacket: DataPacket, updateNotification: Boolean = true) {
if (dataPacket.dataType !in rememberDataType) return
val fromLocal = dataPacket.from == DataPacket.ID_LOCAL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ private fun QuickChatRow(
}
}

@Suppress("LongMethod")
@Composable
private fun TextInput(
enabled: Boolean,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ import com.geeksville.mesh.ui.preview.NodeEntityPreviewParameterProvider
import com.geeksville.mesh.ui.theme.AppTheme
import com.geeksville.mesh.util.getShortDateTime

@Suppress("LongMethod")
@Suppress("LongMethod", "CyclomaticComplexMethod")
@OptIn(ExperimentalMaterialApi::class, ExperimentalFoundationApi::class)
@Composable
internal fun MessageItem(
Expand Down Expand Up @@ -264,6 +264,7 @@ private fun ReplyRow(
}
}

@Suppress("MagicNumber")
@PreviewLightDark
@Composable
private fun MessageItemPreview() {
Expand Down

0 comments on commit 9ff811b

Please sign in to comment.