[Android] AudioUtil: clearing multiple folders

Edward Wang git at videolan.org
Thu Jun 19 00:31:30 CEST 2014


vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Mon Jun 16 18:12:55 2014 -0400| [46594792ee7f88550b3b329b60760b31cfd88983] | committer: Edward Wang

AudioUtil: clearing multiple folders

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=46594792ee7f88550b3b329b60760b31cfd88983
---

 vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java |    2 +-
 vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java b/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
index 7773522..072c8f3 100644
--- a/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/PreferencesActivity.java
@@ -161,7 +161,7 @@ public class PreferencesActivity extends PreferenceActivity implements OnSharedP
                     public boolean onPreferenceClick(Preference preference) {
                         MediaDatabase.getInstance(getBaseContext()).emptyDatabase();
                         BitmapCache.getInstance().clear();
-                        AudioUtil.clearCacheFolder();
+                        AudioUtil.clearCacheFolders();
                         Toast.makeText(getBaseContext(), R.string.media_db_cleared, Toast.LENGTH_SHORT).show();
                         return true;
                     }
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java
index e26cce0..dce9a2f 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java
@@ -120,7 +120,7 @@ public class AudioUtil {
         }
     }
 
-    public static void clearCacheFolder() {
+    public static void clearCacheFolders() {
         for(String path : Arrays.asList(ART_DIR, COVER_DIR, PLAYLIST_DIR)) {
             File file = new File(path);
             if (file.exists())



More information about the Android mailing list