Skip to content

Commit

Permalink
Fix trackers animation being shown on error pages
Browse files Browse the repository at this point in the history
Co-authored-by: laghee <[email protected]>
  • Loading branch information
CrisBarreiro and laghee committed Feb 10, 2025
1 parent d838483 commit 7001024
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,9 @@ class OmnibarLayoutViewModel @Inject constructor(

fun onAnimationStarted(decoration: LaunchTrackersAnimation) {
Timber.d("Omnibar: LaunchTrackersAnimation")
if (_viewState.value.viewMode == MaliciousSiteWarning) {
return
}
if (!decoration.entities.isNullOrEmpty()) {
val hasFocus = _viewState.value.hasFocus
if (!hasFocus) {
Expand Down

0 comments on commit 7001024

Please sign in to comment.