Navigate away from the app while in the midst of reading a pdf. Reopen the app many hours later It crashes.
Dima-Android opened this issue · comments
It was somewhat difficult for me to reproduce, but judging by crashlogs it’s the PSPDFKIT not being initialized when ReaderScreen is open. That’s a bit strange since a user shouldn’t even be able to open that screen in the first place if PSPDFKIT isn’t able to get initialized on his device. Because we have a check for this right before we try to open ReaderScreen.
I’ve changed the place where PSPDFKIT is initialized to make sure it definitely gets loaded even in the case the app was offloaded from memory by OS and then reloaded.