Giter VIP home page Giter VIP logo

conductorglidedemo's People

Contributors

erickuck avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

conductorglidedemo's Issues

Controllers should not share same RequestManager

Hi, I'm a bit late but thanks for the example. Unfortunately it works only if you have exactly one Controller. Because the RequestManager used is the one for Activity. Glide uses just one instance per Activity / Fragment. If all controllers use one shared RequestManager then the first Controller who gets destroyed unregisters the the sahared RequestManager. The next destroyed Controller also attempts to unregister it and GlideException is thrown: "Cannot unregister not yet registered manager". Even if we swallow the exception there's no RequestManager left registered for the remaining Controllers. In other words every Controller needs to have own RequestManager for its own scope. So I tried to fix that:

https://gist.github.com/sevar83/7b5e151233481b629e3d1fb1be7327dc

Could you please take a look at my implementation? Specifically - the GlideSupport.collectRequestManagers() function. It simply traverses the Controller tree to see which controllers in the hierarchy support Glide. I'm not sure if this traversing is correct.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.