Continuing work on #16

This commit is contained in:
amazing-username
2019-03-03 01:25:26 -05:00
parent e542bf7dd4
commit bc24149e73
6 changed files with 116 additions and 86 deletions
@@ -2,15 +2,14 @@ package com.example.mear.management
import java.io.File
import java.lang.Exception
import kotlin.io.*
class MusicFiles (val demoPath: File) {
class MusicFiles (private val demoPath: File) {
fun loadAllMusicPaths() {
try {
allSongs = mutableListOf()
val demoPath = this.demoPath.absoluteFile.toString() +"/music/"
val demoPath = this.demoPath.absoluteFile.toString() + "/music/"
val f = File(demoPath)
var count = 0
@@ -45,5 +44,5 @@ class MusicFiles (val demoPath: File) {
var allSongs: MutableList<String>?= null
var songCount: Int? = null
val musicSongLimit = 120
val musicSongLimit = Int.MAX_VALUE
}