File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,13 @@ Thumbs.db
14
14
15
15
node_modules
16
16
17
+ # eclipse
18
+ bin
19
+ .project
20
+ .classpath
17
21
18
22
19
23
20
24
21
25
22
-
23
-
26
+
Original file line number Diff line number Diff line change @@ -411,7 +411,7 @@ public void pauseAllLostFocus() {
411
411
412
412
public void resumeAllGainedFocus () {
413
413
for (AudioPlayer audio : this .pausedForFocus ) {
414
- audio .startPlaying ( null );
414
+ audio .resumePlaying ( );
415
415
}
416
416
this .pausedForFocus .clear ();
417
417
}
Original file line number Diff line number Diff line change @@ -356,6 +356,13 @@ public void stopPlaying() {
356
356
}
357
357
}
358
358
359
+ /**
360
+ * Resume playing.
361
+ */
362
+ public void resumePlaying () {
363
+ this .startPlaying (this .audioFile );
364
+ }
365
+
359
366
/**
360
367
* Callback to be invoked when playback of a media source has completed.
361
368
*
@@ -585,7 +592,7 @@ private boolean readyPlayer(String file) {
585
592
//if we are readying the same file
586
593
if (this .audioFile .compareTo (file ) == 0 ) {
587
594
//maybe it was recording?
588
- if ( this . recorder != null && player == null ) {
595
+ if ( player == null ) {
589
596
this .player = new MediaPlayer ();
590
597
this .player .setOnErrorListener (this );
591
598
this .prepareOnly = false ;
You can’t perform that action at this time.
0 commit comments