Skip to content

Commit 20bb974

Browse files
authored
Fix for IndexOutOfBoundsException (#4654)
Task/Issue URL: https://app.asana.com/0/1201807753394693/1207291831514025/f ### Description Cancel current typing animation if a new one starts ### Steps to test this PR - [ ] Fresh install - [ ] Check pre-browser Dax dialogs typing animation works as expected - [ ] Go to browser - [ ] Check typing animation for search suggestions Dax dialog works as expected - [ ] Tap on a search suggestion - [ ] Check SERP Dax dialog typing animation works as expected - [ ] Tap on PrimaryCta - [ ] Check typing animation for site suggestions works as expected - [ ] Long press on any link in the browser and select "Open in a new tab" - [ ] Check trackers dialog typing animation works as expected - [ ] Refresh the page - [ ] Check typing animation for End dialog works as expected ### No UI changes
1 parent e628faa commit 20bb974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/common-ui/src/main/java/com/duckduckgo/common/ui/view/TypeAnimationTextView.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class TypeAnimationTextView @JvmOverloads constructor(
5757
}
5858
}
5959
}
60-
60+
if (typingAnimationJob?.isActive == true) typingAnimationJob?.cancel()
6161
typingAnimationJob = launch {
6262
textInDialog?.let { spanned ->
6363

0 commit comments

Comments
 (0)