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
Loading
Please register or sign in to comment