| 570 | } |
| 571 | |
| 572 | void MyPositionController::LoseLocation() |
| 573 | { |
| 574 | if (m_mode == location::NotFollowNoPosition) |
| 575 | return; |
| 576 | else if (m_mode == location::Follow || m_mode == location::FollowAndRotate) |
| 577 | ChangeMode(location::PendingPosition); |
| 578 | else |
| 579 | ChangeMode(location::NotFollowNoPosition); |
| 580 | |
| 581 | if (m_listener != nullptr) |
| 582 | m_listener->PositionChanged(Position(), false /* hasPosition */); |
| 583 | } |
| 584 | |
| 585 | void MyPositionController::OnCompassUpdate(location::CompassInfo const & info, ScreenBase const & screen) |
| 586 | { |
nothing calls this directly
no test coverage detected