commit | e549c4eda26b4ca4ca4d02944b74557123175c81 | [log] [tgz] |
---|---|---|
author | Louis Pullen-Freilich <[email protected]> | Fri Apr 05 19:17:30 2019 +0100 |
committer | Louis Pullen-Freilich <[email protected]> | Fri Apr 05 18:19:05 2019 +0000 |
tree | 2af00eae278d40bf5828ef933852357515acce6a | |
parent | d97c420e4006c91d99301849bca13d4e37ea1df9 [diff] |
Removes context from UriMediaItem This was removed upstream, and so this is currently blocking importing new AndroidX prebuilts to platform. Bug: b/127299117 Test: m -j Change-Id: I02da1ca1fbafae8505d4b0702308daaedd04bd6c
diff --git a/java/com/android/pump/activity/AudioPlayerActivity.java b/java/com/android/pump/activity/AudioPlayerActivity.java index fe1fd5f..dc36bc2 100644 --- a/java/com/android/pump/activity/AudioPlayerActivity.java +++ b/java/com/android/pump/activity/AudioPlayerActivity.java
@@ -137,7 +137,7 @@ finish(); return; } - UriMediaItem mediaItem = new UriMediaItem.Builder(this, uri).build(); + UriMediaItem mediaItem = new UriMediaItem.Builder(uri).build(); mVideoView.setMediaItem(mediaItem); } }
diff --git a/java/com/android/pump/activity/VideoPlayerActivity.java b/java/com/android/pump/activity/VideoPlayerActivity.java index 5ba7ce8..b2c1d08 100644 --- a/java/com/android/pump/activity/VideoPlayerActivity.java +++ b/java/com/android/pump/activity/VideoPlayerActivity.java
@@ -115,7 +115,7 @@ finish(); return; } - UriMediaItem mediaItem = new UriMediaItem.Builder(this, uri).build(); + UriMediaItem mediaItem = new UriMediaItem.Builder(uri).build(); mVideoView.setMediaItem(mediaItem); }