[Android] VLCInstance: fix lua copy path

Thomas Guillem git at videolan.org
Fri Sep 16 16:50:55 CEST 2016


vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Sep 16 16:50:41 2016 +0200| [e30ff1d9cd50547b37e506b5686d783c93ddcddf] | committer: Thomas Guillem

VLCInstance: fix lua copy path

> https://code.videolan.org/videolan/vlc-android/commit/e30ff1d9cd50547b37e506b5686d783c93ddcddf
---

 vlc-android/src/org/videolan/vlc/util/VLCInstance.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/util/VLCInstance.java b/vlc-android/src/org/videolan/vlc/util/VLCInstance.java
index f978241..c7f5b6d 100644
--- a/vlc-android/src/org/videolan/vlc/util/VLCInstance.java
+++ b/vlc-android/src/org/videolan/vlc/util/VLCInstance.java
@@ -41,8 +41,8 @@ public class VLCInstance {
     private static Runnable sCopyLua = new Runnable() {
         @Override
         public void run() {
-            String destinationFolder = AndroidDevices.EXTERNAL_PUBLIC_DIRECTORY+
-                    "/Android/data/"+VLCApplication.getAppContext().getPackageName()+"/lua";
+            final String destinationFolder = VLCApplication.getAppContext().getDir("vlc",
+                    Context.MODE_PRIVATE).getAbsolutePath() + "/.share/lua";
             AssetManager am = VLCApplication.getAppResources().getAssets();
             FileUtils.copyAssetFolder(am, "lua", destinationFolder);
         }



More information about the Android mailing list