Skip to content

Commit

Permalink
Spotlight improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
therealbluepandabear committed Jul 24, 2022
1 parent eb51eb3 commit 3ed03d6
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,18 @@ fun NewProjectFragment.startSpotLight() {
.setAnimation(DecelerateInterpolator(2f))
.build()

var current = 1

lyt.findViewById<Button>(R.id.layoutTarget_nextButton).setOnClickListener {
spotlight.next()
if (current == 1 && binding.fragmentNewCanvasProjectTitleTextInputEditText.text.toString().isNotBlank()) {
current++
spotlight.next()
} else if (current == 2 && binding.fragmentNewCanvasWidthTextInputEditText.text.toString().isNotBlank()) {
current++
spotlight.next()
} else if (current == 3 && binding.fragmentNewCanvasHeightTextInputEditText.text.toString().isNotBlank()) {
spotlight.next()
}
}

lyt.findViewById<Button>(R.id.layoutTarget_closeButton).setOnClickListener {
Expand Down

0 comments on commit 3ed03d6

Please sign in to comment.