提交 80f25e03 编写于 作者: G guoshuyu

调整controlView的手势

上级 2fcca3a3
......@@ -3,6 +3,9 @@ package com.example.gsyvideoplayer;
import android.app.Application;
import android.support.multidex.MultiDexApplication;
import com.shuyu.gsyvideoplayer.GSYVideoManager;
import com.shuyu.gsyvideoplayer.utils.GSYVideoType;
//import com.squareup.leakcanary.LeakCanary;
/**
......
......@@ -412,7 +412,7 @@ public abstract class GSYVideoControlView extends GSYVideoView implements View.O
/**
* 双击
*/
protected GestureDetector gestureDetector = new GestureDetector(getContext(), new GestureDetector.SimpleOnGestureListener() {
protected GestureDetector gestureDetector = new GestureDetector(getContext().getApplicationContext(), new GestureDetector.SimpleOnGestureListener() {
@Override
public boolean onDoubleTap(MotionEvent e) {
touchDoubleUp();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册