Skip to content

Commit

Permalink
Prevent grey bar when DebugView disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kiall committed Apr 30, 2017
1 parent 293b265 commit 2849599
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/java/ie/macinnes/tvheadend/player/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,10 @@ private DebugTextViewHelper getDebugTextView() {
);

if (enableDebugTextView) {
TextView textView = (TextView) mOverlayView.findViewById(R.id.debug_text_view);
textView.setVisibility(View.VISIBLE);
return new DebugTextViewHelper(
mExoPlayer, (TextView) mOverlayView.findViewById(R.id.debug_text_view));
mExoPlayer, textView);
} else {
return null;
}
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/player_overlay_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
android:paddingRight="4dp"
android:textSize="10sp"
android:textColor="@android:color/white"
android:visibility="invisible"
tools:ignore="SmallSp"/>

<com.google.android.exoplayer2.ui.SubtitleView android:id="@+id/subtitle_view"
Expand Down

0 comments on commit 2849599

Please sign in to comment.