android / android/codelab-exoplayer-intro
Java style code into PlayerActivity.kt
Open
- Dominant language
- Kotlin
- Stars
- 235
- Forks
- 129
- PR merge metrics
- No merged PRs in 30d
Description
Into 4. Create a playlist we have next part of code:
private void initializePlayer() {
[...]
exoPlayer.addMediaItem(mediaItem) // Existing code
val secondMediaItem = MediaItem.fromUri(getString(R.string.media_url_mp3));
exoPlayer.addMediaItem(secondMediaItem);
[...]
}
void and ; into .kt files
Contributor guide
Research direction
Open PlayerActivity.kt and inspect the “4. Create a playlist” section, especially initializePlayer(). Compare the shown Java-style syntax with the Kotlin file and update the void and semicolon usage; the section should contain valid Kotlin code without Java-only syntax.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100