Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
CarGuo committed Apr 1, 2019
1 parent 52fc8da commit b3592f8
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,9 @@ protected void setStateAndUi(int state) {
releasePauseCover();
mBufferPoint = 0;
mSaveChangeViewTIme = 0;
}
if (mAudioManager != null) {
mAudioManager.abandonAudioFocus(onAudioFocusChangeListener);
if (mAudioManager != null) {
mAudioManager.abandonAudioFocus(onAudioFocusChangeListener);
}
}
releaseNetWorkState();
break;
Expand Down Expand Up @@ -369,7 +369,9 @@ protected void setStateAndUi(int state) {
protected void setSmallVideoTextureView(View.OnTouchListener onTouchListener) {
super.setSmallVideoTextureView(onTouchListener);
//小窗口播放停止了也可以移动
mThumbImageViewLayout.setOnTouchListener(onTouchListener);
if(mThumbImageViewLayout != null) {
mThumbImageViewLayout.setOnTouchListener(onTouchListener);
}
}

@Override
Expand Down

0 comments on commit b3592f8

Please sign in to comment.