Do not call "onPrepared" unless the media player is prepared.

In setPlaybackView, if the MediaPlayer is not null, onPrepared is
called. However, there can be a race condition where the MediaPlayer is
not null, but also not yet prepared (since preparation is an
asynchronous call).

Bug: 23228984
Change-Id: I1536de9b2c67c0ae796224a717b1047fac0a8da4
1 file changed
tree: 55253c7f491699b5a048cc1797be4d0fe687ce9a
  1. res/
  2. src/
  3. tests/
  4. Android.mk
  5. AndroidManifest.xml
  6. proguard.flags