Bug:
8133672
Change-Id: Ie71c8fd1ea07a19eccf5bbd773054e095426fe80
mCountDownView.cancelCountDown();
// Close the camera now because other activities may need to use it.
closeCamera();
- if (mSurfaceTexture != null) {
- ((CameraScreenNail) mActivity.mCameraScreenNail).releaseSurfaceTexture();
- mSurfaceTexture = null;
- }
+ // Release surface texture.
+ ((CameraScreenNail) mActivity.mCameraScreenNail).releaseSurfaceTexture();
+ mSurfaceTexture = null;
resetScreenOn();
// Clear UI.