diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-01-12 07:37:28 +0100 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-01-12 07:37:28 +0100 |
commit | 8cb013a1bf4728853851d0cbcbc963754632d330 (patch) | |
tree | 50f6a2f2dad7a62474635284d3240fe8116b9b88 /platform | |
parent | 0b4c088089dcef9be43fc8f3ee84e1fb9e53417b (diff) | |
parent | 4cb14ae7d6bea5e656a71fce37a2409e7eb73cad (diff) |
Merge pull request #3323 from mrezai/fix-3321
Fix crash on android 6.0.1, fixes #3321
Diffstat (limited to 'platform')
-rw-r--r-- | platform/android/dir_access_jandroid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/android/dir_access_jandroid.cpp b/platform/android/dir_access_jandroid.cpp index 67d1fd6956..8b7cb992d9 100644 --- a/platform/android/dir_access_jandroid.cpp +++ b/platform/android/dir_access_jandroid.cpp @@ -96,7 +96,7 @@ void DirAccessJAndroid::list_dir_end(){ return; JNIEnv *env = ThreadAndroid::get_env(); - env->CallObjectMethod(io,_dir_close,id); + env->CallVoidMethod(io,_dir_close,id); id=0; @@ -143,7 +143,7 @@ Error DirAccessJAndroid::change_dir(String p_dir){ if (res<=0) return ERR_INVALID_PARAMETER; - env->CallObjectMethod(io,_dir_close,res); + env->CallVoidMethod(io,_dir_close,res); current_dir=new_dir; |