Quran 2.9.3-p2
This release tackles some audio playback related issues that are likely causing ANRs.
- Don't set the state to
State.Playing
untilstart()
is called on theMediaPlayer
. This is important because not doing so allows calls to pause, next, and previous to go through, all of which are illegal beforeMediaPlayer
'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).