|
@@ -1784,7 +1784,7 @@ public class FileDisplayActivity extends FileActivity
|
|
|
|
|
|
private void tryStopPlaying(OCFile file) {
|
|
|
// placeholder for stop-on-delete future code
|
|
|
- if(mPlayerConnection != null) {
|
|
|
+ if (mPlayerConnection != null && MimeTypeUtil.isAudio(file) && mPlayerConnection.isPlaying()) {
|
|
|
mPlayerConnection.stop(file);
|
|
|
}
|
|
|
}
|