android-slideshow
android-slideshow copied to clipboard
Handle IllegalArgumentException in Glide load/preload
java.lang.IllegalArgumentException:
at com.bumptech.glide.manager.RequestManagerRetriever.assertNotDestroyed (RequestManagerRetriever.java:134)
at com.bumptech.glide.manager.RequestManagerRetriever.get (RequestManagerRetriever.java:102)
at com.bumptech.glide.manager.RequestManagerRetriever.get (RequestManagerRetriever.java:87)
at com.bumptech.glide.Glide.with (Glide.java:657)
at link.standen.michael.slideshow.strategy.image.GlideImageStrategy.preload (GlideImageStrategy.java:42)
at link.standen.michael.slideshow.ImageActivity.loadImage (ImageActivity.java:501)
java.lang.IllegalArgumentException:
at com.bumptech.glide.manager.RequestManagerRetriever.assertNotDestroyed (RequestManagerRetriever.java:134)
at com.bumptech.glide.manager.RequestManagerRetriever.get (RequestManagerRetriever.java:102)
at com.bumptech.glide.manager.RequestManagerRetriever.get (RequestManagerRetriever.java:87)
at com.bumptech.glide.Glide.with (Glide.java:657)
at link.standen.michael.slideshow.strategy.image.GlideImageStrategy.load (GlideImageStrategy.java:56)
at link.standen.michael.slideshow.ImageActivity.loadImage (ImageActivity.java:506)
Not sure what state the application is in at the point that this becomes a problem.
There are two instances of this error. Both in the load and preload calls.