Fix videoPreference doesn't play after swipe out of screen

- SurfaceView is destoryed but not mMediaPlayer.setSurface() again

Fixes: 145601503
Test: manual test
Change-Id: I23a0f3762a391174c6ddc98bdd220d6fa4047941
This commit is contained in:
Raff Tsai
2019-12-05 10:43:05 +08:00
parent 131287c626
commit 619e235a06

View File

@@ -98,6 +98,7 @@ class MediaAnimationController implements VideoPreference.AnimationController {
@Override
public boolean onSurfaceTextureDestroyed(SurfaceTexture surfaceTexture) {
preview.setVisibility(View.VISIBLE);
mSurface = null;
return false;
}