Skip to content

Commit

Permalink
change words threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
wesamnabeel99 committed Jan 21, 2023
1 parent 8411b1a commit bcc3b15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fun calculateWords(textView: TextView ,text: String) {

@BindingAdapter(value = ["app:showWhenGoalIsAchieved"])
fun showWhenGoalIsAchieved (view: View, numberOfWords : String) {
if(numberOfWords.toInt() >= Constants.WORDS_GOAL) {
if(numberOfWords.toInt() >= Constants.MINIMUM_WORDS_THRESHOLD) {
view.visibility =View.VISIBLE
} else {
view.visibility =View.GONE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package com.wesam.brainstorming.ui.util

object Constants {
const val MINIMUM_TIME = 5000
const val WORDS_GOAL = 100
const val MINIMUM_WORDS_THRESHOLD = 25
}

0 comments on commit bcc3b15

Please sign in to comment.