Bug fixes

This commit is contained in:
DrKLO 2018-08-27 15:13:23 +03:00
parent fe599cd519
commit 7e327c1e2c
2 changed files with 33 additions and 32 deletions

@ -1 +1 @@
Subproject commit 23ae67306d7fa1c4d5a8a9c8653f63ab93100f88
Subproject commit bfa1e6ab76a467c6c6bff7eabb7c213acc7a1b34

View file

@ -343,8 +343,9 @@ public class MusicPlayerService extends Service implements NotificationCenter.No
AndroidUtilities.runOnUIThread(new Runnable() {
@Override
public void run() {
if(remoteControlClient==null)
if (remoteControlClient == null || MediaController.getInstance().getPlayingMessageObject() == null) {
return;
}
if (MediaController.getInstance().getPlayingMessageObject().audioPlayerDuration == C.TIME_UNSET) {
AndroidUtilities.runOnUIThread(this, 500);
return;