Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onOrientationChanged(CoreOrientationService orientation, int event) {
- if (getMap() == null) {
- return;
- }
- if (event == POSITION_CHANGED) {
- autoCenterRotate(true);
- refreshBinocularsLayer();
- direction_helper.updatePosition(orientation.getPosition());
- updateGpsStatusView(orientation.getPosition());
- } else if (event == POSITION_ACQUIRED) {
- updateMapForFirstTimeIfNeeded();
- direction_helper.updatePosition(orientation.getPosition());
- updateGpsStatusView(orientation.getPosition());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement