Merge pull request #3320 from gaul/static-class

Make classes static where possible
This commit is contained in:
H. Lehmann 2019-08-13 09:04:02 +02:00 committed by GitHub
commit 9fc97010f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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) {

View File

@ -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;