Skip to content

Commit dbe3706

Browse files
Changed the method name to GetClampedAnimationDuration
1 parent 3f1a395 commit dbe3706

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

maui/src/BottomSheet/SfBottomSheet.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ public void Close()
12851285
/// <summary>
12861286
/// Updates the animation duration with the given value.
12871287
/// </summary>
1288-
int SetAnimationDuration()
1288+
int GetClampedAnimationDuration()
12891289
{
12901290
return (int)Math.Max(0, AnimationDuration);
12911291
}
@@ -2127,7 +2127,7 @@ void AnimateBottomSheet(double targetPosition, Action? onFinish = null)
21272127
_overlayGrid.AbortAnimation("overlayGridAnimation");
21282128
}
21292129

2130-
int animationDuration = this.SetAnimationDuration();
2130+
int animationDuration = this.GetClampedAnimationDuration();
21312131
const int topPadding = 2;
21322132
_isSheetOpen = true;
21332133
if (_bottomSheet is not null)

maui/tests/Syncfusion.Maui.Toolkit.UnitTest/Navigation/SfBottomSheetUnitTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -748,10 +748,10 @@ public void UpdateGrabberHeightProperty(double input, double expected)
748748
}
749749

750750
[Fact]
751-
public void SetAnimationDuration()
751+
public void GetClampedAnimationDuration()
752752
{
753753
_bottomSheet.AnimationDuration = -500;
754-
var actual = InvokePrivateMethod(_bottomSheet, "SetAnimationDuration");
754+
var actual = InvokePrivateMethod(_bottomSheet, "GetClampedAnimationDuration");
755755
Assert.Equal(0, actual);
756756
}
757757

0 commit comments

Comments
 (0)