Musicompose-V2
Musicompose-V2 copied to clipboard
No Clarity in the purpose of SongUtil Object
in these code in when condition ( SongUtil.kt )
in every mode you've written songList.add(song)
i didn't understand what's the meaning of when conditions in this code
because in every condition we do adding song
when {
isTracksSmallerThan100KBSkipped and isTracksShorterThan60SecondsSkipped -> {
if (sizeGreaterThan100KB and durationGreaterThan60Sec) songList.add(song)
}
!isTracksSmallerThan100KBSkipped and isTracksShorterThan60SecondsSkipped -> {
if (durationGreaterThan60Sec) songList.add(song)
}
isTracksSmallerThan100KBSkipped and !isTracksShorterThan60SecondsSkipped -> {
if (sizeGreaterThan100KB) songList.add(song)
}
!isTracksSmallerThan100KBSkipped and !isTracksShorterThan60SecondsSkipped -> {
songList.add(song)
}
}