Skip to content

Commit

Permalink
fix lock issue
Browse files Browse the repository at this point in the history
  • Loading branch information
blackbbc committed Aug 12, 2017
1 parent f403f3f commit 7498aaf
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,10 @@ class DanmuVideoPlayer : PreviewGSYVideoPlayer {
}

override fun onTouch(v: View, event: MotionEvent): Boolean {
if (mIfCurrentIsFullscreen && mLockCurScreen && mNeedLockFull) {
return super.onTouch(v, event)
}

if (v.id == R.id.surface_container) {
when (event.action and MotionEvent.ACTION_MASK) {
MotionEvent.ACTION_DOWN -> {
Expand Down

0 comments on commit 7498aaf

Please sign in to comment.