Closed anscash closed 3 years ago
What thread do you have epoxy configured to build models on? and why would that thread be dead? it seems like potentially a configuration issue
Hi @elihart thanks for your fast reply!
My fragment-structure is basically the following:
ON CREATE
HandlerThread handlerThread = new HandlerThread("ID");
handlerThread.start();
Handler myHandler = new Handler(handlerThread.getLooper());
.....
ON VIEW CREATED
MyEpoxyController epoxyController = new MyEpoxyController(); // extends EpoxyController
epoxyController.defaultDiffingHandler = myHandler ;
epoxyController.defaultModelBuildingHandler = myHandler ;
.....
ON DESTROY
handlerThread.quitSafely()
.....
With kind regards
well yes, you shouldn't be quitting your thread in onDestroy, that's why it doesn't exist...
the thread should be long lived across all fragments
defaultModelBuildingHandler and defaultDiffingHandler are static fields
Thank you very much, i will try.
By the way, your library is awesome!
Hey there,
sometimes while switching through my fragment hierarchy, i recognize the carousels are not loading their items. When this happens, i can see this exception in the Log:
With kind regards