SimpleMobileTools / Simple-Music-Player

A clean music player with a customizable widget, stylish interface and no ads.
https://www.simplemobiletools.com
GNU General Public License v3.0
1.27k stars 411 forks source link

change deprecated sumBy() to sumOf() #532

Closed parneet-guraya closed 1 year ago

parneet-guraya commented 1 year ago

Changed Deprecated function sumBy() with sumOf()

Android Studio Warning -> sumBy((T) -> Int): Int' is deprecated. Use sumOf instead

For -> AlbumsActivity It calculates the sum of the duration of the tracks of all the albums of a particular artist.

For -> TracksActivity It calculates the sum of all the tracks present in a particular album.

parneet-guraya commented 1 year ago

@tibbi Hi, can you review it? Thanks!

tibbi commented 1 year ago

will do it once I work on this app, thanks

tibbi commented 1 year ago

seems ok, thanks