Skip to content

Commit

Permalink
Don't start animation if not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
FrayxRulez committed Sep 22, 2024
1 parent 8d2af99 commit a643bb5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Telegram/Views/Calls/VoipPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -630,9 +630,8 @@ private void ShowHideCollapsedToMaximized(bool show, UIElement element, Vector2
{
_visual.StopAnimating();
}
else if (_enstablished)
else if (_enstablished && PowerSavingPolicy.AreMaterialsEnabled && ApiInfo.CanAnimatePaths)
{
// TODO: only if call is still connected
_visual.StartAnimating();
}

Expand Down

0 comments on commit a643bb5

Please sign in to comment.