Materialized the seekBar for devices below Lollipop, seekBar visible again in landscape and fixed a common FC
This commit is contained in:
parent
2231027934
commit
713cbf2b29
5 changed files with 9 additions and 10 deletions
|
|
@ -644,7 +644,7 @@ public class MusicService extends Service implements MediaPlayer.OnPreparedListe
|
|||
public void resumePlaying() {
|
||||
if (!isPlaying()) {
|
||||
if (requestFocus()) {
|
||||
if (isPlayerPrepared) {
|
||||
if (isPlayerPrepared()) {
|
||||
player.start();
|
||||
playingNotificationHelper.updatePlayState(isPlaying());
|
||||
MusicPlayerWidget.updateWidgetsPlayState(this, isPlaying());
|
||||
|
|
@ -669,7 +669,7 @@ public class MusicService extends Service implements MediaPlayer.OnPreparedListe
|
|||
|
||||
public void back(boolean force) {
|
||||
if (position != -1) {
|
||||
if (getSongProgressMillis() > 2000) {
|
||||
if (isPlayerPrepared() && getSongProgressMillis() > 2000) {
|
||||
seekTo(0);
|
||||
} else {
|
||||
playPreviousSong(force);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue