[Android] src: correct hideous spelling error

Edward Wang git at videolan.org
Thu Jun 21 19:55:53 CEST 2012


android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Thu Jun 21 13:50:01 2012 -0400| [65a73e67ed7fc167b6d7db819fca9d13e5bf6e58] | committer: Edward Wang

src: correct hideous spelling error

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=65a73e67ed7fc167b6d7db819fca9d13e5bf6e58
---

 vlc-android/src/org/videolan/vlc/MediaLibrary.java |   26 ++++++++++----------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/MediaLibrary.java b/vlc-android/src/org/videolan/vlc/MediaLibrary.java
index be39386..9bd2466 100644
--- a/vlc-android/src/org/videolan/vlc/MediaLibrary.java
+++ b/vlc-android/src/org/videolan/vlc/MediaLibrary.java
@@ -152,7 +152,7 @@ public class MediaLibrary {
 
     private class GetMediaItemsRunnable implements Runnable {
 
-        private Stack<File> directorys = new Stack<File>();
+        private Stack<File> directories = new Stack<File>();
         private Context mContext;
 
         public GetMediaItemsRunnable(Context context) {
@@ -174,9 +174,9 @@ public class MediaLibrary {
             MainActivity.showProgressBar(mContext);
 
             // get directories from database
-            directorys.addAll(mDBManager.getMediaDirs());
-            if (directorys.isEmpty())
-                directorys.add(new File(root));
+            directories.addAll(mDBManager.getMediaDirs());
+            if (directories.isEmpty())
+                directories.add(new File(root));
 
             // get all existing media items
             HashMap<String, Media> existingMedias = mDBManager.getMedias(mContext);
@@ -193,8 +193,8 @@ public class MediaLibrary {
             int total = 0;
 
             //first pass : count total files
-            while (!directorys.isEmpty()) {
-                File dir = directorys.pop();
+            while (!directories.isEmpty()) {
+                File dir = directories.pop();
                 File[] f = null;
                 if ((f = dir.listFiles(mediaFileFilter)) != null) {
                     for (int i = 0; i < f.length; i++) {
@@ -202,18 +202,18 @@ public class MediaLibrary {
                         if (file.isFile()) {
                             total++;
                         } else if (file.isDirectory()) {
-                            directorys.push(file);
+                            directories.push(file);
                         }
                     }
                 }
             }
-            directorys.addAll(mDBManager.getMediaDirs());
-            if (directorys.isEmpty())
-                directorys.add(new File(root));
+            directories.addAll(mDBManager.getMediaDirs());
+            if (directories.isEmpty())
+                directories.add(new File(root));
 
             //second pass : load Medias
-            while (!directorys.isEmpty()) {
-                File dir = directorys.pop();
+            while (!directories.isEmpty()) {
+                File dir = directories.pop();
                 File[] f = null;
                 if ((f = dir.listFiles(mediaFileFilter)) != null) {
                     for (int i = 0; i < f.length; i++) {
@@ -237,7 +237,7 @@ public class MediaLibrary {
                                 mItemList.add(new Media(mContext, fileURI, true));
                             }
                         } else if (file.isDirectory()) {
-                            directorys.push(file);
+                            directories.push(file);
                         }
                     }
                 }



More information about the Android mailing list