public void disableCompass ( ) { mIsCompassEnabled = false ; if ( mOrientationProvider != null ) { mOrientationProvider . stopOrientationProvider ( ) ; } // Reset values mAzimuth = Float . NaN ; // Update the screen to see changes take effect if ( mMapView != null ) { this . invalidateCompass ( ) ; } }
Disable orientation updates .