Skip to content

Commit 5ec28c3

Browse files
authored
Fix build error caused by lintDebug task
1 parent c37c314 commit 5ec28c3

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

app/src/main/java/ai/elimu/kukariri/assessment/WordAssessmentActivity.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,11 @@ class WordAssessmentActivity : AppCompatActivity() {
123123
// Update the progress bar
124124
val progressPercentage =
125125
wordGsonsMastered.size * 100 / (wordGsonsPendingReview.size + wordGsonsMastered.size)
126-
val objectAnimator = ObjectAnimator.ofInt(progressBar, "progress", progressPercentage)
127-
objectAnimator.setDuration(1000)
128-
objectAnimator.start()
126+
progressBar?.let { pb ->
127+
val objectAnimator = ObjectAnimator.ofInt(pb, "progress", progressPercentage)
128+
objectAnimator.setDuration(1000)
129+
objectAnimator.start()
130+
}
129131

130132
// Display the next Word in the list
131133
val wordGson = wordGsonsPendingReview[0]

0 commit comments

Comments
 (0)