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
8287b252
authored
Jun 21, 2021
by
olly
Committed by
Ian Baker
Jul 16, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Workaround for focus issues on API levels less than 26
Issue: #9061 PiperOrigin-RevId: 380640601
parent
de16dea0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
RELEASENOTES.md
library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerControlView.java
RELEASENOTES.md
View file @
8287b252
...
@@ -32,6 +32,9 @@
...
@@ -32,6 +32,9 @@
*
Add
`PendingIntent.FLAG_IMMUTABLE`
flag when creating a broadcast intent
*
Add
`PendingIntent.FLAG_IMMUTABLE`
flag when creating a broadcast intent
in
`PlayerNotificationManager`
. This is required to avoid an error on
in
`PlayerNotificationManager`
. This is required to avoid an error on
Android 12.
Android 12.
*
Fix focusability of
`StyledPlayerView`
and
`StyledPlayerControlView`
popup menus on API levels prior to 26
(
[
#9061
](
https://github.com/google/ExoPlayer/issues/9061
)
).
### 2.14.1 (2021-06-11)
### 2.14.1 (2021-06-11)
...
...
library/ui/src/main/java/com/google/android/exoplayer2/ui/StyledPlayerControlView.java
View file @
8287b252
...
@@ -1945,6 +1945,10 @@ public class StyledPlayerControlView extends FrameLayout {
...
@@ -1945,6 +1945,10 @@ public class StyledPlayerControlView extends FrameLayout {
public
SettingViewHolder
(
View
itemView
)
{
public
SettingViewHolder
(
View
itemView
)
{
super
(
itemView
);
super
(
itemView
);
if
(
Util
.
SDK_INT
<
26
)
{
// Workaround for https://github.com/google/ExoPlayer/issues/9061.
itemView
.
setFocusable
(
true
);
}
mainTextView
=
itemView
.
findViewById
(
R
.
id
.
exo_main_text
);
mainTextView
=
itemView
.
findViewById
(
R
.
id
.
exo_main_text
);
subTextView
=
itemView
.
findViewById
(
R
.
id
.
exo_sub_text
);
subTextView
=
itemView
.
findViewById
(
R
.
id
.
exo_sub_text
);
iconView
=
itemView
.
findViewById
(
R
.
id
.
exo_icon
);
iconView
=
itemView
.
findViewById
(
R
.
id
.
exo_icon
);
...
@@ -2271,6 +2275,10 @@ public class StyledPlayerControlView extends FrameLayout {
...
@@ -2271,6 +2275,10 @@ public class StyledPlayerControlView extends FrameLayout {
public
SubSettingViewHolder
(
View
itemView
)
{
public
SubSettingViewHolder
(
View
itemView
)
{
super
(
itemView
);
super
(
itemView
);
if
(
Util
.
SDK_INT
<
26
)
{
// Workaround for https://github.com/google/ExoPlayer/issues/9061.
itemView
.
setFocusable
(
true
);
}
textView
=
itemView
.
findViewById
(
R
.
id
.
exo_text
);
textView
=
itemView
.
findViewById
(
R
.
id
.
exo_text
);
checkView
=
itemView
.
findViewById
(
R
.
id
.
exo_check
);
checkView
=
itemView
.
findViewById
(
R
.
id
.
exo_check
);
}
}
...
...
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