Advertisement
Guest User

Untitled

a guest
Dec 6th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.65 KB | None | 0 0
  1. @Override
  2.     public void onOrientationChanged(CoreOrientationService orientation, int event) {
  3.         if (getMap() == null) {
  4.             return;
  5.         }
  6.  
  7.         if (event == POSITION_CHANGED) {
  8.             autoCenterRotate(true);
  9.             refreshBinocularsLayer();
  10.             direction_helper.updatePosition(orientation.getPosition());
  11.             updateGpsStatusView(orientation.getPosition());
  12.         } else if (event == POSITION_ACQUIRED) {
  13.             updateMapForFirstTimeIfNeeded();
  14.             direction_helper.updatePosition(orientation.getPosition());
  15.             updateGpsStatusView(orientation.getPosition());
  16.         }
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement