Fix divide by zero.

Local media player seems to have gotten itself into a state where
the queue was empty and yet the controls were enabled. While this
its not clear how this is even possible, guard against crashing by
checking for an empty queue state before dividing by queue size.

Bug: 36179863
Test: I looked at the code real hard.
Change-Id: I2c4e3991798e17efe9ac1643c89ed963604086ca
1 file changed
tree: 18fb017e5cc3347800aa5073fc048b73c4be99e4
  1. proto/
  2. res/
  3. src/
  4. Android.mk
  5. AndroidManifest.xml