mirror of
https://github.com/Shabinder/SpotiFlyer.git
synced 2024-11-22 09:04:32 +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() {
|
fun FileManager.createDirectories() {
|
||||||
try {
|
try {
|
||||||
if (defaultDir() != "null") {
|
if (!defaultDir().contains("null${fileSeparator()}SpotiFlyer")) {
|
||||||
createDirectory(defaultDir())
|
createDirectory(defaultDir())
|
||||||
createDirectory(imageCacheDir())
|
createDirectory(imageCacheDir())
|
||||||
createDirectory(defaultDir() + "Tracks/")
|
createDirectory(defaultDir() + "Tracks/")
|
||||||
|
@ -25,7 +25,7 @@ internal class DesktopAnalyticsManager(
|
|||||||
loggingLevel = LoggingLevel.ERROR
|
loggingLevel = LoggingLevel.ERROR
|
||||||
setDeviceIdStrategy(DeviceIdStrategy.UUID)
|
setDeviceIdStrategy(DeviceIdStrategy.UUID)
|
||||||
enableFeatures(*featuresSet)
|
enableFeatures(*featuresSet)
|
||||||
setRequiresConsent(false)
|
setRequiresConsent(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
Countly.init(File(fileManager.defaultDir()), config)
|
Countly.init(File(fileManager.defaultDir()), config)
|
||||||
|
Loading…
Reference in New Issue
Block a user