mirror of
https://github.com/androidx/media.git
synced 2025-05-11 01:31:40 +08:00
Fix demo app
This commit is contained in:
parent
fbe840e880
commit
3e75d2a689
@ -435,7 +435,7 @@ public class PlayerActivity extends AppCompatActivity
|
|||||||
if (Util.maybeRequestReadExternalStoragePermission(
|
if (Util.maybeRequestReadExternalStoragePermission(
|
||||||
/* activity= */ this, subtitleInfo.uri)) {
|
/* activity= */ this, subtitleInfo.uri)) {
|
||||||
// The player will be reinitialized if the permission is granted.
|
// The player will be reinitialized if the permission is granted.
|
||||||
return Collections.emptyList();
|
return null;
|
||||||
}
|
}
|
||||||
Format subtitleFormat =
|
Format subtitleFormat =
|
||||||
Format.createTextSampleFormat(
|
Format.createTextSampleFormat(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user