Android: Add content provider support to File::Delete

This commit is contained in:
JosJuice 2020-06-27 11:04:48 +02:00
parent 6e1e6d2311
commit 3805b84906
6 changed files with 49 additions and 2 deletions

View file

@ -58,3 +58,10 @@ int OpenAndroidContent(const std::string& uri, const std::string& mode)
return fd;
}
bool DeleteAndroidContent(const std::string& uri)
{
JNIEnv* env = IDCache::GetEnvForThread();
return env->CallStaticBooleanMethod(IDCache::GetContentHandlerClass(),
IDCache::GetContentHandlerDelete(), ToJString(env, uri));
}