Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwingBottomInAnimationAdapter : generic type is missing #11

Open
polok opened this issue Jan 5, 2016 · 0 comments
Open

SwingBottomInAnimationAdapter : generic type is missing #11

polok opened this issue Jan 5, 2016 · 0 comments

Comments

@polok
Copy link

polok commented Jan 5, 2016

First of all, great work!

SwingBottomInAnimationAdapter has missing configuration, it should be generic as other adapters.

So now we have:

public class SwingBottomInAnimationAdapter extends AnimatorAdapter {
  public SwingBottomInAnimationAdapter(RecyclerView.Adapter<RecyclerView.ViewHolder> adapter, RecyclerView recyclerView) {
        super(adapter, recyclerView);
    }
...
}

and should be :

public class SwingBottomInAnimationAdapter<T extends RecyclerView.ViewHolder> extends AnimatorAdapter<T> {

    public SwingBottomInAnimationAdapter(RecyclerView.Adapter<T> adapter, RecyclerView recyclerView) {
        super(adapter, recyclerView);
    }
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant