Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Shimmering does not stop after calling .stopShimmer() #51

Closed
ArcherEmiya05 opened this issue May 2, 2018 · 2 comments
Closed

Shimmering does not stop after calling .stopShimmer() #51

ArcherEmiya05 opened this issue May 2, 2018 · 2 comments

Comments

@ArcherEmiya05
Copy link

ArcherEmiya05 commented May 2, 2018

Hello I would like to ask why is shimmering still exist even after calling .stopShimmer() method in RecyclerView. Here's an example I am using 0.2.0 v.

        //Set the user's profile picture
        this.shimmerSUDP.startShimmer();
        GlideApp.with(context)
                .load(thumbnail)
                .placeholder(R.color.icon_not_selected)
                .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC)
                .listener(new RequestListener<Drawable>() {
                    @Override
                    public boolean onLoadFailed(@Nullable GlideException e, Object model, 
                            Target<Drawable> target, boolean isFirstResource) {
                        return false;
                    }

                    @Override
                    public boolean onResourceReady(Drawable resource, Object model, Target<Drawable> 
                      target, DataSource dataSource, boolean isFirstResource) {
                        shimmerSUDP.stopShimmer();
                        return false;
                    }
                })
                .into(mSuDP);
@ArcherEmiya05 ArcherEmiya05 changed the title Shimmering is not stop after calling .stopShimmer() Shimmering does not stop after calling .stopShimmer() May 2, 2018
@xiphirx
Copy link
Contributor

xiphirx commented May 22, 2018

stopShimmer seems to be working as expected when trying it out in the sample app. Are you sure the view holder wasn't re-instantiated and dont have autoStart specified?

@ArcherEmiya05
Copy link
Author

ArcherEmiya05 commented May 22, 2018 via email

@xiphirx xiphirx closed this as completed May 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants