Skip to content

Quran 2.9.3-p2

Compare
Choose a tag to compare
@ahmedre ahmedre released this 21 Mar 20:51
80bcd02

This release tackles some audio playback related issues that are likely causing ANRs.

  • Don't set the state to State.Playing until start() is called on the MediaPlayer. This is important because not doing so allows calls to pause, next, and previous to go through, all of which are illegal before MediaPlayer's started state is reached. Consequently, these cause an error to be thrown, which kills the foreground notification, which could be a cause of ANRs due to starting the foreground service without starting foreground (#1113).
  • Any new play request now always overrides the previous play request (#1114). This is just good practice, though it doesn't have any effect except simplifying the code, especially considering the next point.
  • Block the toolbar from playing when loading is in progress (#1116).