Musicompose-V2 icon indicating copy to clipboard operation
Musicompose-V2 copied to clipboard

No Clarity in the purpose of SongUtil Object

Open majid2851 opened this issue 1 year ago • 0 comments

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)
            }
}

majid2851 avatar Oct 09 '23 11:10 majid2851