Skip to content

Commit

Permalink
fix lenovo bug: no close mProgressBarView when play video
Browse files Browse the repository at this point in the history
  • Loading branch information
CaMnter committed Dec 30, 2015
1 parent ee55dee commit a34fe5c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,12 @@ public void onPrepared(MediaPlayer mediaPlayer) {
mediaPlayer.setOnInfoListener(new MediaPlayer.OnInfoListener() {
@Override
public boolean onInfo(MediaPlayer mp, int what, int extra) {
if (what == MediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START) {
/*
* add what == MediaPlayer.MEDIA_INFO_VIDEO_TRACK_LAGGING
* fix : return what == 700 in Lenovo low configuration Android System
*/
if (what == MediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START
|| what == MediaPlayer.MEDIA_INFO_VIDEO_TRACK_LAGGING) {
mProgressBarView.setVisibility(View.GONE);
setCloseButton(true);
initDLNAInfo();
Expand Down

0 comments on commit a34fe5c

Please sign in to comment.