android/Environment: pass JNIEnv to all functions

This commit is contained in:
Max Kellermann
2022-08-18 18:07:29 +02:00
parent 2efc1db6a9
commit 1f4df2a64d
4 changed files with 9 additions and 12 deletions

View File

@@ -254,7 +254,8 @@ GetUserMusicDir() noexcept
#elif defined(USE_XDG)
return GetUserDir("XDG_MUSIC_DIR");
#elif defined(ANDROID)
return Environment::getExternalStoragePublicDirectory("Music");
return Environment::getExternalStoragePublicDirectory(Java::GetEnv(),
"Music");
#else
return nullptr;
#endif