Created
August 23, 2021 10:38
-
-
Save manuelvicnt/7db1ae513021c16c9c7e045e95c3b361 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class PlayActivity : AppCompatActivity() { | |
| private lateinit var player: MusicPlayer | |
| // Created by Hilt when annotating the activity with @AndroidEntryPoint | |
| private lateinit var container: PlayActivityContainer | |
| override fun onCreate(savedInstanceState: Bundle) { | |
| // @AndroidEntryPoint also creates and populates fields for you | |
| container = PlayActivityContainer() | |
| player = container.provideMusicPlayer() | |
| super.onCreate(bundle) | |
| player.play("YHLQMDLG") | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment