package Ġcom . s ung bin . music inform ator . ui . fragment . main Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . lifecycle . Mutable LiveData Ċ import Ġandroidx . lifecycle . ViewModel Ċ import Ġcom . s ung bin . music inform ator . model . Song Item Ċ import Ġcom . s ung bin . music inform ator . util . Song Utils Ċ Ċ class ĠMain ViewModel Ġ: ĠViewModel () Ġ{ ĊĊĠĠĠ Ġval Ġrecently S ongs Item : ĠMutable LiveData < List < Song Item >> Ġ= ĠMutable LiveData () ĊĠĠĠ Ġval Ġsongs Item : ĠMutable LiveData < List < Song Item >> Ġ= ĠMutable LiveData () ĊĊĠĠĠ Ġfun Ġinit S ongs ( context : ĠContext ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsongs Item . value Ġ= ĠSong Utils . getAll Audio Data ( context ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġinit Recent ly S ongs () Ġ{ ĊĠĠĠĠĠĠĠ Ġrecently S ongs Item . value Ġ= ĠSong Utils . sample Song ItemList ĊĠĠĠ Ġ} Ċ } Ċ