From d303db975ed770528e5b51a243c5023a54c8ec6e Mon Sep 17 00:00:00 2001 From: aquilescanta Date: Mon, 23 Jan 2017 03:13:35 -0800 Subject: [PATCH] Re-initialize the DemoApp player on BLWE This CL shows a de facto way to solve BLWEs until an in-player solution is implemented. Issue:#1782 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=145265895 --- .../com/google/android/exoplayer2/demo/PlayerActivity.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/demo/src/main/java/com/google/android/exoplayer2/demo/PlayerActivity.java b/demo/src/main/java/com/google/android/exoplayer2/demo/PlayerActivity.java index e61a9ed130..9add658d30 100644 --- a/demo/src/main/java/com/google/android/exoplayer2/demo/PlayerActivity.java +++ b/demo/src/main/java/com/google/android/exoplayer2/demo/PlayerActivity.java @@ -461,11 +461,12 @@ public class PlayerActivity extends Activity implements OnClickListener, ExoPlay playerNeedsSource = true; if (isBehindLiveWindow(e)) { clearResumePosition(); + initializePlayer(); } else { updateResumePosition(); + updateButtonVisibilities(); + showControls(); } - updateButtonVisibilities(); - showControls(); } @Override