Browse Source

Made inner classes static to discourage access within of enclosing class

master
Anthony Restaino 9 years ago
parent
commit
5c8fd41c6b
  1. 2
      app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java
  2. 2
      app/src/main/java/acr/browser/lightning/fragment/BookmarkSettingsFragment.java
  3. 4
      app/src/main/java/acr/browser/lightning/object/SearchAdapter.java
  4. 2
      app/src/main/java/acr/browser/lightning/reading/ArticleTextExtractor.java

2
app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java

@ -1930,7 +1930,7 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
/** /**
* a class extending FramLayout used to display fullscreen videos * a class extending FramLayout used to display fullscreen videos
*/ */
private class FullscreenHolder extends FrameLayout { private static class FullscreenHolder extends FrameLayout {
public FullscreenHolder(Context ctx) { public FullscreenHolder(Context ctx) {
super(ctx); super(ctx);

2
app/src/main/java/acr/browser/lightning/fragment/BookmarkSettingsFragment.java

@ -114,7 +114,7 @@ public class BookmarkSettingsFragment extends PreferenceFragment implements Pref
} }
} }
private class SortName implements Comparator<File> { private static class SortName implements Comparator<File> {
@Override @Override
public int compare(File a, File b) { public int compare(File a, File b) {

4
app/src/main/java/acr/browser/lightning/object/SearchAdapter.java

@ -108,7 +108,7 @@ public class SearchAdapter extends BaseAdapter implements Filterable {
} }
} }
private class NameFilter implements FilenameFilter { private static class NameFilter implements FilenameFilter {
@Override @Override
public boolean accept(File dir, String filename) { public boolean accept(File dir, String filename) {
@ -273,7 +273,7 @@ public class SearchAdapter extends BaseAdapter implements Filterable {
} }
private class SuggestionHolder { private static class SuggestionHolder {
ImageView mImage; ImageView mImage;
TextView mTitle; TextView mTitle;
TextView mUrl; TextView mUrl;

2
app/src/main/java/acr/browser/lightning/reading/ArticleTextExtractor.java

@ -1208,7 +1208,7 @@ public class ArticleTextExtractor {
* *
* @author Chris Alexander, chris@chris-alexander.co.uk * @author Chris Alexander, chris@chris-alexander.co.uk
*/ */
private class ImageComparator implements Comparator<ImageResult> { private static class ImageComparator implements Comparator<ImageResult> {
@Override @Override
public int compare(ImageResult o1, ImageResult o2) { public int compare(ImageResult o1, ImageResult o2) {

Loading…
Cancel
Save