mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Remove remainder of skip button focus hack
PiperOrigin-RevId: 231772920
This commit is contained in:
parent
ba2ef0be94
commit
41689fdef7
1 changed files with 0 additions and 4 deletions
|
|
@ -758,10 +758,6 @@ public class PlayerView extends FrameLayout {
|
||||||
@Override
|
@Override
|
||||||
public boolean dispatchKeyEvent(KeyEvent event) {
|
public boolean dispatchKeyEvent(KeyEvent event) {
|
||||||
if (player != null && player.isPlayingAd()) {
|
if (player != null && player.isPlayingAd()) {
|
||||||
// Focus any overlay UI now, in case it's provided by a WebView whose contents may update
|
|
||||||
// dynamically. This is needed to make the "Skip ad" button focused on Android TV when using
|
|
||||||
// IMA [Internal: b/62371030].
|
|
||||||
overlayFrameLayout.requestFocus();
|
|
||||||
return super.dispatchKeyEvent(event);
|
return super.dispatchKeyEvent(event);
|
||||||
}
|
}
|
||||||
boolean isDpadWhenControlHidden =
|
boolean isDpadWhenControlHidden =
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue