[Android] Rename a method to show what it actually does

Jean-Baptiste Kempf git at videolan.org
Fri Sep 28 12:36:24 CEST 2012


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Sep 28 12:36:02 2012 +0200| [539383b1873efe35842432b697ffe3c5f08c2317] | committer: Jean-Baptiste Kempf

Rename a method to show what it actually does

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

 vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java      |    3 ++-
 vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java b/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java
index 4ec1664..593947d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java
@@ -326,10 +326,11 @@ public class DirectoryAdapter extends BaseAdapter {
         return a;
     }
 
-    public void clear() {
+    public void refresh() {
         for(DirectoryAdapter.Node n : this.mCurrentNode.children)
             n.children.clear();
         this.mCurrentNode.children.clear();
+
         this.mCurrentNode = new DirectoryAdapter.Node(mCurrentDir);
         this.populateNode(mCurrentNode, mCurrentDir);
 
diff --git a/vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java b/vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java
index 6e9bc5d..d6d2adf 100644
--- a/vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/DirectoryViewFragment.java
@@ -165,6 +165,6 @@ public class DirectoryViewFragment extends SherlockListFragment implements ISort
 
     public void refresh() {
         if (mDirectoryAdapter != null)
-            mDirectoryAdapter.clear();
+            mDirectoryAdapter.refresh();
     }
 }



More information about the Android mailing list