You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the WebView class is extended, a better solution would be to let this view handle the adding and removing of this JavaScript object itself inside its own lifecycle (onAttached/onDetached).
The text was updated successfully, but these errors were encountered:
Currently, the "Android" object is added to the JavaScript context in the fragments (https://github.com/readium/r2-navigator-kotlin/blob/develop/r2-navigator/src/main/java/org/readium/r2/navigator/pager/R2EpubPageFragment.kt#L84), but they are never removed when the fragment goes away. This means that we're effectively leaking a reference.
Since the
WebView
class is extended, a better solution would be to let this view handle the adding and removing of this JavaScript object itself inside its own lifecycle (onAttached
/onDetached
).The text was updated successfully, but these errors were encountered: