diff options
author | 2015-06-29 17:16:50 +0000 | |
---|---|---|
committer | 2015-06-29 17:16:50 +0000 | |
commit | 1d75e5273e63de811363f22976ced24f629918ce (patch) | |
tree | e829f5957c1819e49d3ad0e7519726a196f82498 | |
parent | 64c0c4da555f6d38b9c2516f855b49e6b501b783 (diff) | |
parent | 82b3f67711246ad5beaf7702ce16e9d433406d1e (diff) |
am 82b3f677: Merge "Use AlertDialog for MediaRouteControllerDialog" into mnc-dev
* commit '82b3f67711246ad5beaf7702ce16e9d433406d1e':
Use AlertDialog for MediaRouteControllerDialog
-rw-r--r-- | core/java/com/android/internal/app/MediaRouteControllerDialog.java | 6 |
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 b0e037396c83..4a468bef3826 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); |