| 260 | } |
| 261 | |
| 262 | void NotificationManager::SetSpeedMetersPerSecond(double speed) |
| 263 | { |
| 264 | // When the quality of GPS data is bad the current speed may be less then zero. |
| 265 | // It's easy to reproduce at an office with Nexus 5. |
| 266 | // In that case zero meters per second is used. |
| 267 | m_speedMetersPerSecond = std::max(0., speed); |
| 268 | } |
| 269 | |
| 270 | void NotificationManager::Reset() |
| 271 | { |
no outgoing calls