Commit e1e092e9 authored by Edward Wang's avatar Edward Wang
Browse files

Make some inner classes static

parent 2fd621d3
...@@ -32,7 +32,7 @@ public class MediaList { ...@@ -32,7 +32,7 @@ public class MediaList {
/* Since the libvlc_media_t is not created until the media plays, we have /* Since the libvlc_media_t is not created until the media plays, we have
* to cache them here. */ * to cache them here. */
private class MediaHolder { private static class MediaHolder {
Media m; Media m;
boolean noVideo; // default false boolean noVideo; // default false
boolean noHardwareAcceleration; // default false boolean noHardwareAcceleration; // default false
......
...@@ -384,7 +384,7 @@ public class MediaLibrary { ...@@ -384,7 +384,7 @@ public class MediaLibrary {
/** /**
* Filters all irrelevant files * Filters all irrelevant files
*/ */
private class MediaItemFilter implements FileFilter { private static class MediaItemFilter implements FileFilter {
@Override @Override
public boolean accept(File f) { public boolean accept(File f) {
......
...@@ -129,7 +129,7 @@ public class AboutFragment extends Fragment { ...@@ -129,7 +129,7 @@ public class AboutFragment extends Fragment {
return v; return v;
} }
private class DummyContentFactory implements TabHost.TabContentFactory { private static class DummyContentFactory implements TabHost.TabContentFactory {
private final Context mContext; private final Context mContext;
public DummyContentFactory(Context ctx) { public DummyContentFactory(Context ctx) {
mContext = ctx; mContext = ctx;
......
...@@ -64,7 +64,7 @@ public class BrowserActivity extends ListActivity { ...@@ -64,7 +64,7 @@ public class BrowserActivity extends ListActivity {
private final Stack<ScrollState> mScrollStates = new Stack<ScrollState>(); private final Stack<ScrollState> mScrollStates = new Stack<ScrollState>();
private String mRoots[]; private String mRoots[];
private class ScrollState { private static class ScrollState {
public ScrollState(int index, int top) { public ScrollState(int index, int top) {
this.index = index; this.index = index;
this.top = top; this.top = top;
......
...@@ -169,7 +169,7 @@ public class AudioAlbumsSongsFragment extends Fragment { ...@@ -169,7 +169,7 @@ public class AudioAlbumsSongsFragment extends Fragment {
return v; return v;
} }
private class DummyContentFactory implements TabHost.TabContentFactory { private static class DummyContentFactory implements TabHost.TabContentFactory {
private final Context mContext; private final Context mContext;
public DummyContentFactory(Context ctx) { public DummyContentFactory(Context ctx) {
mContext = ctx; mContext = ctx;
......
...@@ -307,7 +307,7 @@ public class AudioBrowserListAdapter extends BaseAdapter implements SectionIndex ...@@ -307,7 +307,7 @@ public class AudioBrowserListAdapter extends BaseAdapter implements SectionIndex
return v; return v;
} }
class ViewHolder { static class ViewHolder {
View layout; View layout;
ImageView cover; ImageView cover;
TextView title; TextView title;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment