Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
75922427
Commit
75922427
authored
Feb 18, 2015
by
Geoffrey Métais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent NPE for unknown device
CID #1270883
parent
b67e407c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
vlc-android/tv/src/org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java
.../videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java
+5
-2
No files found.
vlc-android/tv/src/org/videolan/vlc/gui/tv/audioplayer/AudioPlayerActivity.java
View file @
75922427
...
...
@@ -201,9 +201,12 @@ public class AudioPlayerActivity extends Activity implements AudioServiceControl
public
boolean
dispatchGenericMotionEvent
(
MotionEvent
event
){
InputDevice
mI
nputDevice
=
event
.
getDevice
();
InputDevice
i
nputDevice
=
event
.
getDevice
();
float
x
=
AndroidDevices
.
getCenteredAxis
(
event
,
mInputDevice
,
if
(
inputDevice
==
null
)
return
false
;
float
x
=
AndroidDevices
.
getCenteredAxis
(
event
,
inputDevice
,
MotionEvent
.
AXIS_X
);
if
(
System
.
currentTimeMillis
()
-
mLastMove
>
JOYSTICK_INPUT_DELAY
){
...
...
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