Materialized the seekBar for devices below Lollipop, seekBar visible again in landscape and fixed a common FC

This commit is contained in:
Karim Abou Zeid 2015-04-20 20:31:55 +02:00
commit 713cbf2b29
5 changed files with 9 additions and 10 deletions

View file

@ -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);