Skip to content

Commit

Permalink
Extracting block code to method
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrofsn committed Nov 5, 2018
1 parent e5f9eb0 commit 8bf1597
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ class ActivityMain : ActivityCapturarImagem() {

val spinner = linearLayout.findViewWithTag<Spinner>("ui_pergunta_4_spinner")
val pergunta = linearLayout.findViewWithTag<LinearLayout>("ui_pergunta_5")
showAskIfSpinnerHasPosition3AsSelected(spinner, pergunta)
}

private fun showAskIfSpinnerHasPosition3AsSelected(spinner: Spinner?, pergunta: LinearLayout?) {
if (pergunta != null && spinner != null) {
pergunta.visibility = View.GONE

Expand Down

0 comments on commit 8bf1597

Please sign in to comment.