Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Casanowow Life for love
VLC-Android
Commits
89bfb4dc
Commit
89bfb4dc
authored
Apr 17, 2018
by
Geoffrey Métais
Browse files
Video player: Disable quick scale gesture
parent
c28a62e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
View file @
89bfb4dc
...
...
@@ -59,6 +59,7 @@ import android.support.design.widget.Snackbar;
import
android.support.v4.app.FragmentManager
;
import
android.support.v4.content.LocalBroadcastManager
;
import
android.support.v4.view.GestureDetectorCompat
;
import
android.support.v4.view.ScaleGestureDetectorCompat
;
import
android.support.v4.view.ViewCompat
;
import
android.support.v7.app.ActionBar
;
import
android.support.v7.app.AlertDialog
;
...
...
@@ -2038,8 +2039,10 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
mDetector
=
new
GestureDetectorCompat
(
this
,
mGestureListener
);
mDetector
.
setOnDoubleTapListener
(
mGestureListener
);
}
if
(
mScaleGestureDetector
==
null
)
if
(
mScaleGestureDetector
==
null
)
{
mScaleGestureDetector
=
new
ScaleGestureDetector
(
this
,
mScaleListener
);
ScaleGestureDetectorCompat
.
setQuickScaleEnabled
(
mScaleGestureDetector
,
false
);
}
if
(
mPlaybackSetting
!=
DelayState
.
OFF
)
{
if
(
event
.
getAction
()
==
MotionEvent
.
ACTION_UP
)
endPlaybackSetting
();
return
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment