From 3e17586a9ac30c8f9a6b4b0c3fd675f20c455f61 Mon Sep 17 00:00:00 2001 From: Kyle Corry Date: Thu, 23 Jun 2022 17:06:25 -0400 Subject: [PATCH] Code cleanup --- .../trail_sense/navigation/beacons/ui/PlaceBeaconFragment.kt | 2 +- app/src/main/res/layout/fragment_camera_input.xml | 1 - app/src/main/res/layout/fragment_qr_import_sheet.xml | 1 - app/src/main/res/layout/fragment_scan_text.xml | 1 - app/src/main/res/layout/fragment_tool_flashlight.xml | 1 - app/src/main/res/layout/view_multi_unit_input.xml | 1 - app/src/main/res/layout/view_unit_input.xml | 1 - app/src/main/res/raw/clinometer.md | 2 +- app/src/main/res/raw/tides.md | 2 +- app/src/main/res/raw/using_printed_maps.md | 2 +- app/src/main/res/xml/map_preferences.xml | 3 +-- build.gradle.kts | 2 +- 12 files changed, 6 insertions(+), 13 deletions(-) diff --git a/app/src/main/java/com/kylecorry/trail_sense/navigation/beacons/ui/PlaceBeaconFragment.kt b/app/src/main/java/com/kylecorry/trail_sense/navigation/beacons/ui/PlaceBeaconFragment.kt index 4545f2928..a07801ee6 100644 --- a/app/src/main/java/com/kylecorry/trail_sense/navigation/beacons/ui/PlaceBeaconFragment.kt +++ b/app/src/main/java/com/kylecorry/trail_sense/navigation/beacons/ui/PlaceBeaconFragment.kt @@ -206,7 +206,7 @@ class PlaceBeaconFragment : BoundFragment() { private fun hasValidName(): Boolean { - return !form.data.name.isNullOrBlank() + return form.data.name.isNotBlank() } private fun updateColor() { diff --git a/app/src/main/res/layout/fragment_camera_input.xml b/app/src/main/res/layout/fragment_camera_input.xml index 0bcfb66dd..304f70854 100644 --- a/app/src/main/res/layout/fragment_camera_input.xml +++ b/app/src/main/res/layout/fragment_camera_input.xml @@ -1,6 +1,5 @@ diff --git a/app/src/main/res/layout/fragment_tool_flashlight.xml b/app/src/main/res/layout/fragment_tool_flashlight.xml index f2ccf1bb7..dbd3cf379 100644 --- a/app/src/main/res/layout/fragment_tool_flashlight.xml +++ b/app/src/main/res/layout/fragment_tool_flashlight.xml @@ -2,7 +2,6 @@ diff --git a/app/src/main/res/layout/view_multi_unit_input.xml b/app/src/main/res/layout/view_multi_unit_input.xml index 74ae44f78..465e24995 100644 --- a/app/src/main/res/layout/view_multi_unit_input.xml +++ b/app/src/main/res/layout/view_multi_unit_input.xml @@ -1,6 +1,5 @@ - +