1 parent
6d0b55ac26
commit
2c3bafdac3
6 files changed
-68
No files matched your search
@@ -120,18 +120,4 @@ public class UriArchiveAccessor implements Closeable {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static native boolean compressDirToOutStream(String dirname, int format, OutputStream os);
|
||||
|
||||
public static synchronized boolean exportGalleryArchive(String dirName, int format, Uri target, Context context) {
|
||||
try {
|
||||
OutputStream os = context.getContentResolver().openOutputStream(target);
|
||||
compressDirToOutStream(dirName, format, os);
|
||||
os.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -183,10 +183,4 @@ Java_com_hippo_UriArchiveAccessor_extracttoOutputStream(JNIEnv *env, jobject thi
|
||||
archive_read_close(arc->archive);
|
||||
archive_destroy_inst(arc);
|
||||
return 0;
|
||||
}
|
||||
|
||||
JNIEXPORT jboolean JNICALL
|
||||
Java_com_hippo_UriArchiveAccessor_compressDirToOutStream(JNIEnv *env, jclass clazz, jstring dirname,
|
||||
jint format, jobject os) {
|
||||
return JNI_FALSE;
|
||||
}
|
||||
Reference in new issue
Block a user