title: Video pausing with error "Unauthorized overlay"
body: <p>I am getting following error while playing video in fullscreen mode (only in fullscreen). I am hiding all other components in the layout when it goes fullscreen but it says that <code>android:id/statusBarBackground</code> is the view that is causing the problem. How do I control that?</p>
  
  <pre><code>YouTube video playback stopped due to unauthorized overlay on top of player. The YouTubePlayerView is obscured by android.view.View{16771a9d V.ED.... ........ 0,0-1920,75 #102002f android:id/statusBarBackground}. The view is inside the YouTubePlayerView, with the distance in px between each edge of the obscuring view and the YouTubePlayerView being: left: 0, top: 0, right: 0, bottom: 1005.. 
  </code></pre>
  
  <p>My layout looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;merge xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/container"
      android:layout_width="match_parent"
      android:layout_height="match_parent"&gt;
      &lt;LinearLayout
          android:id="@+id/videoListLayout"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_gravity="top"
          android:orientation="vertical"&gt;
  
          &lt;RelativeLayout
              android:layout_width="match_parent"
              android:layout_height="30dp"
              android:background="@drawable/heading" &gt;
  
              &lt;TextView
                  android:id="@+id/topDisplayArea"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:gravity="center_vertical"
                  android:paddingLeft="10dp"
                  android:paddingRight="10dp"
                  android:text="@string/app_desc"
                  android:textColor="@color/topDisplayAreaFG"
                  android:textSize="18sp"
                  android:textStyle="bold"
                  android:typeface="serif" &gt;
              &lt;/TextView&gt;
  
              &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="fill_parent"
                  android:layout_alignParentRight="true" &gt;
                  &lt;ImageButton
                      android:id="@+id/mp_shareCommonButton"
                      android:layout_width="wrap_content"
                      android:layout_height="fill_parent"
                      android:layout_marginLeft="1dp"
                      android:layout_marginRight="1dp"
                      android:background="@drawable/widget_button"
                      android:contentDescription="Share"
                      android:cropToPadding="true"
                      android:src="@android:drawable/ic_menu_preferences" &gt;
                  &lt;/ImageButton&gt;
              &lt;/LinearLayout&gt;
          &lt;/RelativeLayout&gt;
  
          &lt;LinearLayout
              android:id="@+id/infoPanel"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:gravity="center"
              android:orientation="horizontal"&gt;
  
              &lt;ProgressBar
                  android:id="@+id/retrievalProgressIndicator"
                  style="?android:attr/progressBarStyle"
                  android:layout_width="20dp"
                  android:layout_height="20dp"
                  android:layout_gravity="center"
                  android:indeterminate="true" /&gt;
  
              &lt;TextView
                  android:id="@+id/refreshContentLabel"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:gravity="center"
                  android:paddingLeft="10dp"
                  android:paddingRight="10dp"
                  android:text="Connecting to server..."
                  android:textColor="@color/topDisplayAreaFG"
                  android:textSize="18sp"
                  android:typeface="sans" &gt;
              &lt;/TextView&gt;
          &lt;/LinearLayout&gt;
  
  
          &lt;fragment
              class="VideosActivity$VideoListFragment"
              android:id="@+id/list_fragment"
              android:layout_width="match_parent"
              android:layout_height="match_parent"/&gt;
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:id="@+id/video_box"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_gravity="bottom"
          android:orientation="vertical"&gt;
  
          &lt;ImageButton
              android:id="@+id/close_button"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_gravity="center_horizontal"
              android:src="@android:drawable/btn_dialog"
              android:onClick="onClickClose"/&gt;
  
          &lt;fragment
              class="VideosActivity$VideoFragment"
              android:id="@+id/video_fragment_container"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"/&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/merge&gt;
  </code></pre>
  
  <p>I am using FullScreenListener and in onFullScreen function, I hide all other elements in the layout except the videofragment. </p>
  
  <pre><code>@Override
      public void onFullscreen(boolean isFullscreen) {
          this.isFullscreen = isFullscreen;
  
          layout();
      }
  </code></pre>
  
  <p>Also I am adding following flag to the video player </p>
  
  <pre><code>player.addFullscreenControlFlag(YouTubePlayer.FULLSCREEN_FLAG_CUSTOM_LAYOUT);
  </code></pre>