Adding the overridden control view to the layout instead of the control
frame in MediaRouterControllerDialog.

Change-Id: Id22db360b8c840a1c17980cea339ea35b1bb9bb1
diff --git a/v7/mediarouter/src/android/support/v7/app/MediaRouteControllerDialog.java b/v7/mediarouter/src/android/support/v7/app/MediaRouteControllerDialog.java
index 8f18972..73cd2fa 100644
--- a/v7/mediarouter/src/android/support/v7/app/MediaRouteControllerDialog.java
+++ b/v7/mediarouter/src/android/support/v7/app/MediaRouteControllerDialog.java
@@ -170,11 +170,13 @@
         mCreated = true;
         if (update()) {
             mControlView = onCreateMediaControlView(savedInstanceState);
+            FrameLayout controlFrame =
+                    (FrameLayout)findViewById(R.id.media_route_control_frame);
             if (mControlView != null) {
-                FrameLayout controlFrame =
-                        (FrameLayout)findViewById(R.id.media_route_control_frame);
-                controlFrame.addView(controlFrame);
+                controlFrame.addView(mControlView);
                 controlFrame.setVisibility(View.VISIBLE);
+            } else {
+                controlFrame.setVisibility(View.GONE);
             }
         }
     }