summaryrefslogtreecommitdiffstats
path: root/core/java/com
diff options
context:
space:
mode:
authorJae Seo <jaeseo@google.com>2015-06-25 16:55:04 -0700
committerJae Seo <jaeseo@google.com>2015-06-26 14:47:37 -0700
commit001d51496d062789355a91ce9365cd0cfeac6925 (patch)
tree9313a2dc226cff7150cf79295cb06bc092d03677 /core/java/com
parent869c230c1466e517289d692dce85acf0c30296c4 (diff)
downloadframeworks_base-001d51496d062789355a91ce9365cd0cfeac6925.zip
frameworks_base-001d51496d062789355a91ce9365cd0cfeac6925.tar.gz
frameworks_base-001d51496d062789355a91ce9365cd0cfeac6925.tar.bz2
Use AlertDialog for MediaRouteControllerDialog
Bug: 19876497, Bug: 21795195, Bug: 22044600 Change-Id: I8ec3b17d026b2690edad4b5c4d61741e29b653db
Diffstat (limited to 'core/java/com')
-rw-r--r--core/java/com/android/internal/app/MediaRouteControllerDialog.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/java/com/android/internal/app/MediaRouteControllerDialog.java b/core/java/com/android/internal/app/MediaRouteControllerDialog.java
index b0e0373..4a468be 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.Dialog;
+import android.app.AlertDialog;
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 Dialog {
+public class MediaRouteControllerDialog extends AlertDialog {
// 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,8 +134,6 @@ public class MediaRouteControllerDialog extends Dialog {
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);