- if (mFile.isAudio()) {\r
- if (!mMediaServiceBinder.isPlaying(mFile)) {\r
- Log.d(TAG, "starting playback of " + mFile.getStoragePath());\r
- mMediaServiceBinder.start(mAccount, mFile);\r
- // this is a patch; need to synchronize this with the onPrepared() coming from MediaPlayer in the MediaService\r
- /*\r
- mMediaController.postDelayed(new Runnable() {\r
- @Override\r
- public void run() {\r
- mMediaController.show(0);\r
- }\r
- } , 300);\r
- */\r
- } else {\r
- if (mMediaController.isShowing()) {\r
- mMediaController.hide();\r
- } else {\r
- mMediaController.show(MediaService.MEDIA_CONTROL_LIFE);\r
- }\r
- }\r
- \r
- } else if (mFile.isVideo()) {\r