Android: Show a message when adding a folder with no games

To catch people who try to use unsupported formats.
This commit is contained in:
JosJuice
2020-11-08 23:01:59 +01:00
parent 399ede37a6
commit 73855168f3
7 changed files with 69 additions and 23 deletions

View File

@ -124,9 +124,9 @@ std::string GetAndroidContentDisplayName(const std::string& uri)
std::vector<std::string> GetAndroidContentChildNames(const std::string& uri)
{
JNIEnv* env = IDCache::GetEnvForThread();
jobject children =
env->CallStaticObjectMethod(IDCache::GetContentHandlerClass(),
IDCache::GetContentHandlerGetChildNames(), ToJString(env, uri));
jobject children = env->CallStaticObjectMethod(IDCache::GetContentHandlerClass(),
IDCache::GetContentHandlerGetChildNames(),
ToJString(env, uri), false);
return JStringArrayToVector(env, reinterpret_cast<jobjectArray>(children));
}