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 {
/* Since the libvlc_media_t is not created until the media plays, we have
* to cache them here. */
private class MediaHolder {
private static class MediaHolder {
Media m;
boolean noVideo; // default false
boolean noHardwareAcceleration; // default false
......
......@@ -384,7 +384,7 @@ public class MediaLibrary {
/**
* Filters all irrelevant files
*/
private class MediaItemFilter implements FileFilter {
private static class MediaItemFilter implements FileFilter {
@Override
public boolean accept(File f) {
......
......@@ -129,7 +129,7 @@ public class AboutFragment extends Fragment {
return v;
}
private class DummyContentFactory implements TabHost.TabContentFactory {
private static class DummyContentFactory implements TabHost.TabContentFactory {
private final Context mContext;
public DummyContentFactory(Context ctx) {
mContext = ctx;
......
......@@ -64,7 +64,7 @@ public class BrowserActivity extends ListActivity {
private final Stack<ScrollState> mScrollStates = new Stack<ScrollState>();
private String mRoots[];
private class ScrollState {
private static class ScrollState {
public ScrollState(int index, int top) {
this.index = index;
this.top = top;
......
......@@ -169,7 +169,7 @@ public class AudioAlbumsSongsFragment extends Fragment {
return v;
}
private class DummyContentFactory implements TabHost.TabContentFactory {
private static class DummyContentFactory implements TabHost.TabContentFactory {
private final Context mContext;
public DummyContentFactory(Context ctx) {
mContext = ctx;
......
......@@ -307,7 +307,7 @@ public class AudioBrowserListAdapter extends BaseAdapter implements SectionIndex
return v;
}
class ViewHolder {
static class ViewHolder {
View layout;
ImageView cover;
TextView title;
......
Markdown is supported
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