diff options
Diffstat (limited to '')
-rw-r--r-- | src/fs/StandardDirectory.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/fs/StandardDirectory.cxx b/src/fs/StandardDirectory.cxx index fce54a677..20d66bb10 100644 --- a/src/fs/StandardDirectory.cxx +++ b/src/fs/StandardDirectory.cxx @@ -246,13 +246,7 @@ AllocatedPath GetUserMusicDir() #elif defined(USE_XDG) return GetUserDir("XDG_MUSIC_DIR"); #elif defined(ANDROID) - char buffer[1024]; - if (Environment::getExternalStoragePublicDirectory(buffer, - sizeof(buffer), - "Music") == nullptr) - return AllocatedPath::Null(); - - return AllocatedPath::FromUTF8(buffer); + return Environment::getExternalStoragePublicDirectory("Music"); #else return AllocatedPath::Null(); #endif |