Made inner classes static to discourage access within of enclosing class
This commit is contained in:
parent
b6b2a25dbe
commit
5c8fd41c6b
@ -1930,7 +1930,7 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
|
||||
/**
|
||||
* a class extending FramLayout used to display fullscreen videos
|
||||
*/
|
||||
private class FullscreenHolder extends FrameLayout {
|
||||
private static class FullscreenHolder extends FrameLayout {
|
||||
|
||||
public FullscreenHolder(Context ctx) {
|
||||
super(ctx);
|
||||
|
@ -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
|
||||
public int compare(File a, File b) {
|
||||
|
@ -108,7 +108,7 @@ public class SearchAdapter extends BaseAdapter implements Filterable {
|
||||
}
|
||||
}
|
||||
|
||||
private class NameFilter implements FilenameFilter {
|
||||
private static class NameFilter implements FilenameFilter {
|
||||
|
||||
@Override
|
||||
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;
|
||||
TextView mTitle;
|
||||
TextView mUrl;
|
||||
|
@ -1208,7 +1208,7 @@ public class ArticleTextExtractor {
|
||||
*
|
||||
* @author Chris Alexander, chris@chris-alexander.co.uk
|
||||
*/
|
||||
private class ImageComparator implements Comparator<ImageResult> {
|
||||
private static class ImageComparator implements Comparator<ImageResult> {
|
||||
|
||||
@Override
|
||||
public int compare(ImageResult o1, ImageResult o2) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user