Skip to content

Commit 7001024

Browse files
CrisBarreirolaghee
andcommitted
Fix trackers animation being shown on error pages
Co-authored-by: laghee <[email protected]>
1 parent d838483 commit 7001024

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/src/main/java/com/duckduckgo/app/browser/omnibar/OmnibarLayoutViewModel.kt

+3
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,9 @@ class OmnibarLayoutViewModel @Inject constructor(
565565

566566
fun onAnimationStarted(decoration: LaunchTrackersAnimation) {
567567
Timber.d("Omnibar: LaunchTrackersAnimation")
568+
if (_viewState.value.viewMode == MaliciousSiteWarning) {
569+
return
570+
}
568571
if (!decoration.entities.isNullOrEmpty()) {
569572
val hasFocus = _viewState.value.hasFocus
570573
if (!hasFocus) {

0 commit comments

Comments
 (0)