[Android] FileUtils: Use provided context

Geoffrey Métais git at videolan.org
Tue Feb 5 15:31:07 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Feb  5 13:50:49 2019 +0100| [2ebd6a6817a9f8c6738ec6e2db81039808c3cae6] | committer: Geoffrey Métais

FileUtils: Use provided context

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

 vlc-android/src/org/videolan/vlc/util/FileUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/util/FileUtils.java b/vlc-android/src/org/videolan/vlc/util/FileUtils.java
index f4d808efc..91ea55516 100644
--- a/vlc-android/src/org/videolan/vlc/util/FileUtils.java
+++ b/vlc-android/src/org/videolan/vlc/util/FileUtils.java
@@ -138,7 +138,7 @@ public class FileUtils {
             public void run() {
                 final String destinationFolder = context.getDir("vlc",
                         Context.MODE_PRIVATE).getAbsolutePath() + "/.share/lua";
-                final AssetManager am = VLCApplication.getAppResources().getAssets();
+                final AssetManager am = context.getAssets();
                 copyAssetFolder(am, "lua", destinationFolder, force);
             }
         });



More information about the Android mailing list