From 2577adaae695c8717df759e0590158d13b9c75d7 Mon Sep 17 00:00:00 2001 From: remi Date: Tue, 26 Nov 2024 10:40:27 +0100 Subject: [PATCH] fix: detekt --- app/src/main/java/com/geeksville/mesh/ui/MessagesFragment.kt | 4 +++- app/src/main/java/com/geeksville/mesh/ui/ShareFragment.kt | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/geeksville/mesh/ui/MessagesFragment.kt b/app/src/main/java/com/geeksville/mesh/ui/MessagesFragment.kt index a7038d2d9..afaac1ed9 100644 --- a/app/src/main/java/com/geeksville/mesh/ui/MessagesFragment.kt +++ b/app/src/main/java/com/geeksville/mesh/ui/MessagesFragment.kt @@ -118,7 +118,9 @@ class MessagesFragment : Fragment(), Logging { contactKey = arguments?.getString("contactKey").toString() val contactName = arguments?.getString("contactName").toString() - if (arguments?.getString("message") != null) binding.messageInputText.setText(arguments?.getString("message").toString()) + if (arguments?.getString("message") != null) { + binding.messageInputText.setText(arguments?.getString("message").toString()) + } binding.toolbar.title = contactName val channelNumber = contactKey[0].digitToIntOrNull() if (channelNumber == DataPacket.PKC_CHANNEL_INDEX) { diff --git a/app/src/main/java/com/geeksville/mesh/ui/ShareFragment.kt b/app/src/main/java/com/geeksville/mesh/ui/ShareFragment.kt index 5aea6bbfe..23b7dca29 100644 --- a/app/src/main/java/com/geeksville/mesh/ui/ShareFragment.kt +++ b/app/src/main/java/com/geeksville/mesh/ui/ShareFragment.kt @@ -105,7 +105,6 @@ class ShareFragment : ScreenFragment("Messages"), Logging { } } - @Composable fun ShareContactListView( contacts: List,