Skip to content

Commit

Permalink
Fix some Codacy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
1951FDG committed Nov 30, 2019
1 parent 3764213 commit e27709b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ fun <T : Activity> onSettingsItemSelected(activity: T, @Suppress("UNUSED_PARAMET
}

fun <T : AppCompatActivity> 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e27709b

Please sign in to comment.