@Override protected void onResume() { super.onResume(); // setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); mResumed = true; mAudioRingerMode = AudioUtil.setMuteAll(this, true, mAudioRingerMode); }
@Override public void onPause() { super.onPause(); mResumed = false; if (mControlResumed) { if (null != mControl) { mControl.onPause(); } mControlResumed = false; } mAudioRingerMode = AudioUtil.setMuteAll(this, false, mAudioRingerMode); }