Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
PierfrancescoSoffritti committed Sep 5, 2016
1 parent 81d29fb commit 6687069
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ public void onStateChange(@YouTubePlayer.State.YouTubePlayerState int state) {
if(state == YouTubePlayer.State.UNSTARTED) {
panel.setBackgroundColor(ContextCompat.getColor(youTubePlayerView.getContext(), android.R.color.black));
canFadeControls = false;

progressBar.setVisibility(View.GONE);
playButton.setVisibility(View.VISIBLE);
}
}
}
Expand Down Expand Up @@ -275,13 +278,16 @@ public void onStopTrackingTouch(SeekBar seekBar) {

public void onNewVideo() {
seekBar.setProgress(0);
seekBar.setMax(0);

videoTitle.post(new Runnable() {
@Override
public void run() {
videoTitle.setText("");
}
});

youTubeButton.setOnClickListener(null);
}

public void showTitle(boolean show) {
Expand Down

0 comments on commit 6687069

Please sign in to comment.