diff options
author | H. Lehmann <ByteHamster@users.noreply.github.com> | 2019-08-13 09:04:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-13 09:04:02 +0200 |
commit | 9fc97010f988df4b81a0fd7d8132bcd866f5be4b (patch) | |
tree | ec8c5d3a49f2513074c9bd90c66ec6121d5403cb /app/src/main/java/de/danoeh/antennapod | |
parent | fd625650e69bc73863fe035be3b4dcd01c539a1a (diff) | |
parent | 94bee6fb745b7a955f700d6b6f1b9d443d93633d (diff) | |
download | AntennaPod-9fc97010f988df4b81a0fd7d8132bcd866f5be4b.zip |
Merge pull request #3320 from gaul/static-class
Make classes static where possible
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod')
3 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/CoverLoader.java b/app/src/main/java/de/danoeh/antennapod/adapter/CoverLoader.java index 79dc1f96e..33f925e3f 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/CoverLoader.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/CoverLoader.java @@ -79,7 +79,7 @@ public class CoverLoader { builder.into(new CoverTarget(txtvPlaceholder, imgvCover)); } - class CoverTarget extends CustomViewTarget<ImageView, Drawable> { + static class CoverTarget extends CustomViewTarget<ImageView, Drawable> { private final WeakReference<TextView> placeholder; private final WeakReference<ImageView> cover; diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/DataFolderAdapter.java b/app/src/main/java/de/danoeh/antennapod/adapter/DataFolderAdapter.java index 909fd6459..74bc84878 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/DataFolderAdapter.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/DataFolderAdapter.java @@ -100,7 +100,7 @@ public class DataFolderAdapter extends RecyclerView.Adapter<DataFolderAdapter.Vi dialog.dismiss(); } - class ViewHolder extends RecyclerView.ViewHolder { + static class ViewHolder extends RecyclerView.ViewHolder { private View root; private TextView path; private TextView size; @@ -117,7 +117,7 @@ public class DataFolderAdapter extends RecyclerView.Adapter<DataFolderAdapter.Vi } } - class StoragePath { + static class StoragePath { private final String path; StoragePath(String path) { diff --git a/app/src/main/java/de/danoeh/antennapod/dialog/EpisodesApplyActionFragment.java b/app/src/main/java/de/danoeh/antennapod/dialog/EpisodesApplyActionFragment.java index 7697aaa69..bb47f8baa 100644 --- a/app/src/main/java/de/danoeh/antennapod/dialog/EpisodesApplyActionFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/dialog/EpisodesApplyActionFragment.java @@ -60,7 +60,7 @@ public class EpisodesApplyActionFragment extends Fragment { * * Includes: the menu / action item and the actual logic */ - private class ActionBinding { + private static class ActionBinding { int flag; @IdRes final int actionItemId; |