MeidaPlayerGlue: Fix unable to play music, ...
... Playback state loss problem in Activity.onStop, and
leaking in enableProgressUpdate.
1. MediaPlayerGlue enableProgressUpdate() does not remove
previous Runnable, causing a leak.
2. MediaPlayerGlue.setMediaSource() does not call
prepareMediaForPlaying() and the prepare is relying on
SurfaceCreated being called. So it fails to play music.
3. onSurfaceDestroy/onSurfaceCreate should not reset player
which causing state loss in activity onStop().
Test: MediaPlayerGlueTest
Bug: 35318285 35246768 35319588
Change-Id: I254630c47199b813c13904787795ee8d4d896bd4
11 files changed