[Android] [PATCH 2/3] Inner class made static

Geoffrey Métais geoffrey.metais at gmail.com
Mon Feb 16 17:12:10 CET 2015


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

diff --git a/vlc-android/src/org/videolan/vlc/gui/BrowserActivity.java b/vlc-android/src/org/videolan/vlc/gui/BrowserActivity.java
index 9da56f2..94e997c 100644
--- a/vlc-android/src/org/videolan/vlc/gui/BrowserActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/BrowserActivity.java
@@ -287,7 +287,7 @@ public class BrowserActivity extends ListActivity {
     /**
      * Filter: accept only directories
      */
-    private class DirFilter implements FileFilter {
+    static private class DirFilter implements FileFilter {
 
         @Override
         public boolean accept(File f) {
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
index a84c34d..ec4cca1 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserListAdapter.java
@@ -81,7 +81,7 @@ public class AudioBrowserListAdapter extends BaseAdapter implements SectionIndex
     private ContextPopupMenuListener mContextPopupMenuListener;
 
     // An item of the list: a media or a separator.
-    class ListItem {
+    static class ListItem {
         final public String mTitle;
         final public String mSubTitle;
         final public ArrayList<MediaWrapper> mMediaList;
-- 
2.1.0



More information about the Android mailing list