code: public void unregisterSensorManager(boolean resetTranslation) {
          if (mSensorManager == null || mSensorInterpreter == null) return;
  
          mSensorManager.unregisterListener(this);
          mSensorManager = null;
          mSensorInterpreter.reset();
  
          if (resetTranslation) {
              setTranslate(0, 0);
          }
      }
docs: Unregisters the ParallaxImageView's SensorManager. Should be called in onPause from
  an Activity or Fragment to avoid continuing sensor usage.
  
  @param resetTranslation if the image translation should be reset to the origin