mirror of
https://github.com/Shabinder/SpotiFlyer.git
synced 2024-12-22 12:47:54 +01:00
Don't Create Directories when default Dir is null
This commit is contained in:
parent
7bc3a24a50
commit
7ff8b918ff
@ -77,7 +77,7 @@ interface FileManager {
|
||||
* */
|
||||
fun FileManager.createDirectories() {
|
||||
try {
|
||||
if (defaultDir() != "null") {
|
||||
if (!defaultDir().contains("null${fileSeparator()}SpotiFlyer")) {
|
||||
createDirectory(defaultDir())
|
||||
createDirectory(imageCacheDir())
|
||||
createDirectory(defaultDir() + "Tracks/")
|
||||
|
@ -25,7 +25,7 @@ internal class DesktopAnalyticsManager(
|
||||
loggingLevel = LoggingLevel.ERROR
|
||||
setDeviceIdStrategy(DeviceIdStrategy.UUID)
|
||||
enableFeatures(*featuresSet)
|
||||
setRequiresConsent(false)
|
||||
setRequiresConsent(true)
|
||||
}
|
||||
|
||||
Countly.init(File(fileManager.defaultDir()), config)
|
||||
|
Loading…
Reference in New Issue
Block a user