Skip to content

Commit

Permalink
Check if controller is used when performing click directly.
Browse files Browse the repository at this point in the history
Issue:#6260
PiperOrigin-RevId: 261647858
  • Loading branch information
tonihei authored and ojw28 committed Aug 5, 2019
1 parent b0c2b1a commit 936a778
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
([#6192](https://github.com/google/ExoPlayer/issues/6192)).
* Fix Flac and ALAC playback on some LG devices
([#5938](https://github.com/google/ExoPlayer/issues/5938)).
* Fix issue when calling `performClick` on `PlayerView` without
`PlayerControlView`
([#6260](https://github.com/google/ExoPlayer/issues/6260)).

### 2.10.3 ###

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,9 @@ public View[] getAdOverlayViews() {
// Internal methods.

private boolean toggleControllerVisibility() {
if (!useController || player == null) {
return false;
}
if (!controller.isVisible()) {
maybeShowController(true);
} else if (controllerHideOnTouch) {
Expand Down Expand Up @@ -1492,9 +1495,6 @@ public void onLayoutChange(

@Override
public boolean onSingleTapUp(MotionEvent e) {
if (!useController || player == null) {
return false;
}
return toggleControllerVisibility();
}
}
Expand Down

0 comments on commit 936a778

Please sign in to comment.