Loading media/java/android/media/MediaController2.java +3 −1 Original line number Diff line number Diff line Loading @@ -736,8 +736,10 @@ public class MediaController2 implements AutoCloseable { return mProvider.getPlaylistMetadata_impl(); } /** * Inserts the media item to the playlist at position index. * Adds the media item to the playlist at position index. Index equals or greater than * the current playlist size will add the item at the end of the playlist. * <p> * This will not change the currently playing media item. * If index is less than or equal to the current index of the playlist, Loading media/java/android/media/MediaPlaylistAgent.java +8 −3 Original line number Diff line number Diff line Loading @@ -229,10 +229,15 @@ public abstract class MediaPlaylistAgent { } /** * Adds the media item to the playlist at the index * Adds the media item to the playlist at position index. Index equals or greater than * the current playlist size will add the item at the end of the playlist. * <p> * This will not change the currently playing media item. * If index is less than or equal to the current index of the playlist, * the current index of the playlist will be incremented correspondingly. * * @param index index * @param item media item to add * @param index the index you want to add * @param item the media item you want to add */ public void addPlaylistItem(int index, @NonNull MediaItem2 item) { mProvider.addPlaylistItem_impl(index, item); Loading media/java/android/media/MediaSession2.java +2 −1 Original line number Diff line number Diff line Loading @@ -1647,7 +1647,8 @@ public class MediaSession2 implements AutoCloseable { } /** * Adds the media item to the playlist at position index. * Adds the media item to the playlist at position index. Index equals or greater than * the current playlist size will add the item at the end of the playlist. * <p> * This will not change the currently playing media item. * If index is less than or equal to the current index of the play list, Loading Loading
media/java/android/media/MediaController2.java +3 −1 Original line number Diff line number Diff line Loading @@ -736,8 +736,10 @@ public class MediaController2 implements AutoCloseable { return mProvider.getPlaylistMetadata_impl(); } /** * Inserts the media item to the playlist at position index. * Adds the media item to the playlist at position index. Index equals or greater than * the current playlist size will add the item at the end of the playlist. * <p> * This will not change the currently playing media item. * If index is less than or equal to the current index of the playlist, Loading
media/java/android/media/MediaPlaylistAgent.java +8 −3 Original line number Diff line number Diff line Loading @@ -229,10 +229,15 @@ public abstract class MediaPlaylistAgent { } /** * Adds the media item to the playlist at the index * Adds the media item to the playlist at position index. Index equals or greater than * the current playlist size will add the item at the end of the playlist. * <p> * This will not change the currently playing media item. * If index is less than or equal to the current index of the playlist, * the current index of the playlist will be incremented correspondingly. * * @param index index * @param item media item to add * @param index the index you want to add * @param item the media item you want to add */ public void addPlaylistItem(int index, @NonNull MediaItem2 item) { mProvider.addPlaylistItem_impl(index, item); Loading
media/java/android/media/MediaSession2.java +2 −1 Original line number Diff line number Diff line Loading @@ -1647,7 +1647,8 @@ public class MediaSession2 implements AutoCloseable { } /** * Adds the media item to the playlist at position index. * Adds the media item to the playlist at position index. Index equals or greater than * the current playlist size will add the item at the end of the playlist. * <p> * This will not change the currently playing media item. * If index is less than or equal to the current index of the play list, Loading