Make classes static where possible
Found via error-prone.
This commit is contained in:
parent
0680dfb047
commit
94bee6fb74
|
@ -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;
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue