Merge pull request #3320 from gaul/static-class
Make classes static where possible
This commit is contained in:
commit
9fc97010f9
|
@ -79,7 +79,7 @@ public class CoverLoader {
|
||||||
builder.into(new CoverTarget(txtvPlaceholder, imgvCover));
|
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<TextView> placeholder;
|
||||||
private final WeakReference<ImageView> cover;
|
private final WeakReference<ImageView> cover;
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@ public class DataFolderAdapter extends RecyclerView.Adapter<DataFolderAdapter.Vi
|
||||||
dialog.dismiss();
|
dialog.dismiss();
|
||||||
}
|
}
|
||||||
|
|
||||||
class ViewHolder extends RecyclerView.ViewHolder {
|
static class ViewHolder extends RecyclerView.ViewHolder {
|
||||||
private View root;
|
private View root;
|
||||||
private TextView path;
|
private TextView path;
|
||||||
private TextView size;
|
private TextView size;
|
||||||
|
@ -117,7 +117,7 @@ public class DataFolderAdapter extends RecyclerView.Adapter<DataFolderAdapter.Vi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class StoragePath {
|
static class StoragePath {
|
||||||
private final String path;
|
private final String path;
|
||||||
|
|
||||||
StoragePath(String path) {
|
StoragePath(String path) {
|
||||||
|
|
|
@ -60,7 +60,7 @@ public class EpisodesApplyActionFragment extends Fragment {
|
||||||
*
|
*
|
||||||
* Includes: the menu / action item and the actual logic
|
* Includes: the menu / action item and the actual logic
|
||||||
*/
|
*/
|
||||||
private class ActionBinding {
|
private static class ActionBinding {
|
||||||
int flag;
|
int flag;
|
||||||
@IdRes
|
@IdRes
|
||||||
final int actionItemId;
|
final int actionItemId;
|
||||||
|
|
Loading…
Reference in New Issue