Make some inner classes static

Closes #7370
This commit is contained in:
Andrew Gaul 2018-01-27 12:29:58 -08:00 committed by Moxie Marlinspike
parent c5e495bfe5
commit 10c1ee70e8
4 changed files with 5 additions and 5 deletions

View File

@ -316,7 +316,7 @@ public class AudioView extends FrameLayout implements AudioSlidePlayer.Listener
} }
} }
private class TouchIgnoringListener implements OnTouchListener { private static class TouchIgnoringListener implements OnTouchListener {
@Override @Override
public boolean onTouch(View v, MotionEvent event) { public boolean onTouch(View v, MotionEvent event) {
return true; return true;

View File

@ -85,7 +85,7 @@ public class EmojiParser {
return best; return best;
} }
public class Candidate { public static class Candidate {
private final int startIndex; private final int startIndex;
private final int endIndex; private final int endIndex;
@ -110,7 +110,7 @@ public class EmojiParser {
} }
} }
public class CandidateList implements Iterable<Candidate> { public static class CandidateList implements Iterable<Candidate> {
public final List<EmojiParser.Candidate> list; public final List<EmojiParser.Candidate> list;
public final boolean allEmojis; public final boolean allEmojis;

View File

@ -82,7 +82,7 @@ public class StickerSelectActivity extends FragmentActivity implements StickerSe
finish(); finish();
} }
class StickerPagerAdapter extends FragmentStatePagerAdapter { static class StickerPagerAdapter extends FragmentStatePagerAdapter {
private final Fragment[] fragments; private final Fragment[] fragments;

View File

@ -180,7 +180,7 @@ public class VideoPlayer extends FrameLayout {
videoView.setMediaController(mediaController); videoView.setMediaController(mediaController);
} }
private class ExoPlayerListener implements ExoPlayer.EventListener { private static class ExoPlayerListener implements ExoPlayer.EventListener {
private final Window window; private final Window window;
ExoPlayerListener(Window window) { ExoPlayerListener(Window window) {