Android: Add content provider support to File::Delete

This commit is contained in:
JosJuice
2020-09-16 18:38:53 +02:00
parent 6e1e6d2311
commit 3805b84906
6 changed files with 49 additions and 2 deletions
@@ -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));
}