So, for some reason, after m_currentLocation = location; accuracy becones NaN. I tried doing m_currentLocation.setAccuracy(location.accuracy()) but the accuracy was still NaN. I tried m_currentLocation.accuracy().setHorizontal(location.accuracy().horizontal()); but that was NaN as well. This solution thankfully works. If you want to debug it further and find real reason, feel free, I would just like to have working accuracy asap
So, for some reason, after
m_currentLocation = location;
accuracy becones NaN. I tried doingm_currentLocation.setAccuracy(location.accuracy())
but the accuracy was still NaN. I triedm_currentLocation.accuracy().setHorizontal(location.accuracy().horizontal());
but that was NaN as well. This solution thankfully works. If you want to debug it further and find real reason, feel free, I would just like to have working accuracy asap