Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2bb5f88c authored by Jean Chen's avatar Jean Chen
Browse files

Fix WindowMagnificationAnimationControllerTest fail

The root cause is that we are using different types (int and float) between the code base and the test case. If we convert a floating-point number to an integer, the decimal part of the float value is truncated. But, the round() method rounds upward if the value after the decimal is greater than or equal to 5.

Bug: 290648269
Test: atest WindowMagnificationAnimationControllerTest (Pixel 7 & Pixel Fold)
Change-Id: I0ae0f69e9078f998f5d6c08b2aefbe00e1628af9
parent d68a00cc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment