platform/android/Rhodes/jni/src/callbacks.cpp in rhodes-3.3.3.beta.3 vs platform/android/Rhodes/jni/src/callbacks.cpp in rhodes-3.3.3.beta.4

- old
+ new

@@ -26,10 +26,11 @@ #include "rhodes/JNIRhodes.h" #include "rhodes/JNIRhoRuby.h" #include "rhodes/RhoClassFactory.h" +#include "rhodes/fileapi.h" #include <ruby/ext/rho/rhoruby.h> #undef DEFAULT_LOGCATEGORY #define DEFAULT_LOGCATEGORY "Callbacks" @@ -67,36 +68,10 @@ if (!mid) return; jhstring objFolderPath = rho_cast<jhstring>(szFolderPath); env->CallStaticVoidMethod(cls, mid, objFolderPath.get()); } -RHO_GLOBAL void rho_file_impl_delete_folder(const char* szFolderPath) { - /* - JNIEnv *env = jnienv(); - jclass cls = getJNIClass(RHODES_JAVA_CLASS_RHODES_SERVICE); - if (!cls) return; - jmethodID mid = getJNIClassStaticMethod(env, cls, "deleteFolder", "(Ljava/lang/String;)V"); - if (!mid) return; - jhstring objFolderPath = rho_cast<jhstring>(szFolderPath); - env->CallStaticVoidMethod(cls, mid, objFolderPath.get()); - */ - -} - -RHO_GLOBAL void rho_file_impl_copy_folders_content_to_another_folder(const char* szSrcFolderPath, const char* szDstFolderPath) { - /* - JNIEnv *env = jnienv(); - jclass cls = getJNIClass(RHODES_JAVA_CLASS_RHODES_SERVICE); - if (!cls) return; - jmethodID mid = getJNIClassStaticMethod(env, cls, "copyFoldersContentToAnotherFolder", "(Ljava/lang/String;Ljava/lang/String;)V"); - if (!mid) return; - jhstring objSrcFolderPath = rho_cast<jhstring>(szSrcFolderPath); - jhstring objDstFolderPath = rho_cast<jhstring>(szDstFolderPath); - env->CallStaticVoidMethod(cls, mid, objSrcFolderPath.get(), objDstFolderPath.get()); - */ -} - RHO_GLOBAL void rho_platform_restart_application() { } RHO_GLOBAL VALUE rho_sys_makephonecall(const char* callname, int nparams, char** param_names, char** param_values) @@ -305,5 +280,11 @@ } RHO_GLOBAL void rho_sys_set_application_icon_badge(int badge_number) { //unsupported on Android } + +RHO_GLOBAL void rho_sys_impl_before_exit() +{ + rho_file_set_fs_mode(RHO_FS_DISK_ONLY); +} +