summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDongwon Kang <dwkang@google.com>2015-07-06 19:54:02 -0700
committerDongwon Kang <dwkang@google.com>2015-07-06 20:09:03 -0700
commit7980d10d7c1ac0b5301eb8efaa18657201074910 (patch)
tree15de691fdf5c0625de39ab0622252dc852244dd1
parent760b1409bc865df5c60f637b8c994eb20888acb8 (diff)
downloadframeworks_base-7980d10d7c1ac0b5301eb8efaa18657201074910.zip
frameworks_base-7980d10d7c1ac0b5301eb8efaa18657201074910.tar.gz
frameworks_base-7980d10d7c1ac0b5301eb8efaa18657201074910.tar.bz2
Revert "Use AlertDialog for MediaRouteControllerDialog"
This reverts commit 001d51496d062789355a91ce9365cd0cfeac6925. Background: To just inherit AlertDialog, the content view should include a title as we do in support library (AlertDialog uses NO_TITLE feature), but up-streaming support library implementation to the framework at this point might cause more issues. Verified that the narrow dialog issue (b/22044600) does not happen in the framework implementation regardless of whether it uses AlertDialog or not. Bug: 22286869 Change-Id: Ic2554cc9e683beff29d1deee91945c1dace83ab1
-rw-r--r--core/java/com/android/internal/app/MediaRouteControllerDialog.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/java/com/android/internal/app/MediaRouteControllerDialog.java b/core/java/com/android/internal/app/MediaRouteControllerDialog.java
index 4a468be..b0e0373 100644
--- a/core/java/com/android/internal/app/MediaRouteControllerDialog.java
+++ b/core/java/com/android/internal/app/MediaRouteControllerDialog.java
@@ -18,7 +18,7 @@ package com.android.internal.app;
import com.android.internal.R;
-import android.app.AlertDialog;
+import android.app.Dialog;
import android.app.MediaRouteActionProvider;
import android.app.MediaRouteButton;
import android.content.Context;
@@ -46,7 +46,7 @@ import android.widget.SeekBar;
*
* TODO: Move this back into the API, as in the support library media router.
*/
-public class MediaRouteControllerDialog extends AlertDialog {
+public class MediaRouteControllerDialog extends Dialog {
// Time to wait before updating the volume when the user lets go of the seek bar
// to allow the route provider time to propagate the change and publish a new
// route descriptor.
@@ -134,6 +134,8 @@ public class MediaRouteControllerDialog extends AlertDialog {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
+ getWindow().requestFeature(Window.FEATURE_LEFT_ICON);
+
setContentView(R.layout.media_route_controller_dialog);
mVolumeLayout = (LinearLayout)findViewById(R.id.media_route_volume_layout);