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

Skip to content
Commit 2bc155de authored by Ludovic Barman's avatar Ludovic Barman
Browse files

LocationFudger: Avoid division by zero

Following internal discussions, this CL removes a rarely-occuring bug.

At latitudes -+90°, cos() is 0, leading to a division by zero.
This exception happens only if the device location (plus offset) is exactly at the North or South pole, so I assume it never happened in practice.

Change-Id: I6e91791e1b7e87ed88e48cff13a0af9b3a680908
Test: atest FrameworksMockingServicesTests:LocationFudgerTest
Bug: 388189593
Flag: EXEMPT Bug Fix
parent 086613e0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment