Update TrackSelectionDialogBuilder to use androidx compat Dialog.

This ensure style themes are correctly applied.

issue:#7357
PiperOrigin-RevId: 313145345
This commit is contained in:
tonihei 2020-05-26 08:52:37 +01:00 committed by Oliver Woodman
parent eddc2b0b33
commit f099f570e6
3 changed files with 4 additions and 1 deletions

View File

@ -194,6 +194,8 @@
* Add `showScrubber` and `hideScrubber` methods to DefaultTimeBar.
* Move logic of prev, next, fast forward and rewind to ControlDispatcher
([#6926](https://github.com/google/ExoPlayer/issues/6926)).
* Update `TrackSelectionDialogBuilder` to use androidx compat Dialog
([#7357](https://github.com/google/ExoPlayer/issues/7357)).
* Metadata: Add minimal DVB Application Information Table (AIT) support
([#6922](https://github.com/google/ExoPlayer/pull/6922)).
* Cast extension: Implement playlist API and deprecate the old queue

View File

@ -40,6 +40,7 @@ dependencies {
implementation project(modulePrefix + 'library-core')
api 'androidx.media:media:' + androidxMediaVersion
implementation 'androidx.annotation:annotation:' + androidxAnnotationVersion
implementation 'androidx.appcompat:appcompat:' + androidxAppCompatVersion
compileOnly 'org.checkerframework:checker-qual:' + checkerframeworkVersion
compileOnly 'org.jetbrains.kotlin:kotlin-annotations-jvm:' + kotlinAnnotationsVersion
testImplementation project(modulePrefix + 'testutils')

View File

@ -15,12 +15,12 @@
*/
package com.google.android.exoplayer2.ui;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import com.google.android.exoplayer2.source.TrackGroupArray;
import com.google.android.exoplayer2.trackselection.DefaultTrackSelector;
import com.google.android.exoplayer2.trackselection.DefaultTrackSelector.SelectionOverride;