@Override public void onPause() { super.onPause(); if (orientationListener != null) { orientationListener.disable(); orientationListener = null; } }