Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
33f3e5fc
authored
Apr 16, 2021
by
olly
Committed by
Oliver Woodman
Apr 16, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Make surfaceView non-clickable
PiperOrigin-RevId: 368818853
parent
2cc51db5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerView.java
library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerView.java
library/ui/src/main/java/com/google/android/exoplayer2/ui/PlayerView.java
View file @
33f3e5fc
...
...
@@ -436,7 +436,11 @@ public class PlayerView extends FrameLayout implements AdViewProvider {
break
;
}
surfaceView
.
setLayoutParams
(
params
);
// We don't want surfaceView to be clickable separately to the PlayerView itself, but we do
// want to register as an OnClickListener so that surfaceView implementations can propagate
// click events up to the PlayerView by calling their own performClick method.
surfaceView
.
setOnClickListener
(
componentListener
);
surfaceView
.
setClickable
(
false
);
contentFrame
.
addView
(
surfaceView
,
0
);
}
else
{
surfaceView
=
null
;
...
...
library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerView.java
View file @
33f3e5fc
...
...
@@ -443,7 +443,11 @@ public class StyledPlayerView extends FrameLayout implements AdViewProvider {
break
;
}
surfaceView
.
setLayoutParams
(
params
);
// We don't want surfaceView to be clickable separately to the StyledPlayerView itself, but we
// do want to register as an OnClickListener so that surfaceView implementations can propagate
// click events up to the StyledPlayerView by calling their own performClick method.
surfaceView
.
setOnClickListener
(
componentListener
);
surfaceView
.
setClickable
(
false
);
contentFrame
.
addView
(
surfaceView
,
0
);
}
else
{
surfaceView
=
null
;
...
...
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