From e27709ba36d95ef7f609a40756db2bf523837547 Mon Sep 17 00:00:00 2001 From: 1951FDG <1951FDG@users.noreply.github.com> Date: Sat, 30 Nov 2019 19:49:39 +0100 Subject: [PATCH] Fix some Codacy warnings --- .../main/kotlin/io/github/getsixtyfour/openpyn/Utilities.kt | 5 ++++- .../io/github/getsixtyfour/openpyn/map/MapControlTower.kt | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/io/github/getsixtyfour/openpyn/Utilities.kt b/app/src/main/kotlin/io/github/getsixtyfour/openpyn/Utilities.kt index 1b426fcb..c0d1ba02 100644 --- a/app/src/main/kotlin/io/github/getsixtyfour/openpyn/Utilities.kt +++ b/app/src/main/kotlin/io/github/getsixtyfour/openpyn/Utilities.kt @@ -143,7 +143,10 @@ fun onSettingsItemSelected(activity: T, @Suppress("UNUSED_PARAMET } fun setProgressToolBar( - activity: T, toolbar: ProgressToolbar, showHomeAsUp: Boolean = false, showTitle: Boolean = false + activity: T, + toolbar: ProgressToolbar, + showHomeAsUp: Boolean = false, + showTitle: Boolean = false ) { toolbar.hideProgress() toolbar.isIndeterminate = true diff --git a/app/src/main/kotlin/io/github/getsixtyfour/openpyn/map/MapControlTower.kt b/app/src/main/kotlin/io/github/getsixtyfour/openpyn/map/MapControlTower.kt index 43bfd320..372bbbd9 100644 --- a/app/src/main/kotlin/io/github/getsixtyfour/openpyn/map/MapControlTower.kt +++ b/app/src/main/kotlin/io/github/getsixtyfour/openpyn/map/MapControlTower.kt @@ -395,8 +395,8 @@ class MapControlTower : SVC_MapControlTower(), AnkoLogger, OnMapReadyCallback, O it.setOnMapLoadedCallback(this) // todo - //val params = fab1.layoutParams as ConstraintLayout.LayoutParams - //it.setPadding(0, 0, 0, params.height + params.bottomMargin) + // val params = fab1.layoutParams as ConstraintLayout.LayoutParams + // it.setPadding(0, 0, 0, params.height + params.bottomMargin) it.uiSettings?.isScrollGesturesEnabled = true it.uiSettings?.isZoomGesturesEnabled = true