Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11301 Reply

    Simon

    Hi,

    When the size of a ReaderView changes, the document is not being scaled to fit the new dimensions. Only after you scroll it manually, it scales and fits the new size.

    Calling ReaderView.refreshLayout() after a size change manually leads to a crash:

    java.lang.NullPointerException: Attempt to invoke virtual method ‘int android.view.ViewGroup.getChildCount()’ on a null object reference
    at com.epapyrus.plugpdf.core.viewer.PageView.adjustPatch(PageView.java:410)
    at com.epapyrus.plugpdf.core.viewer.SinglePageDisplay.onUserInteractionComplete(SinglePageDisplay.java:189)
    at com.epapyrus.plugpdf.core.viewer.SinglePageDisplay$3.run(SinglePageDisplay.java:315)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5254)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

    My device is running Android 5.1 and I use the most recent PlugPDF release.

    #11306 Reply

    Dr. Plug
    Moderator

    Hello, Simon

    Could you give us a sample project that problem happens?
    It would be very helpful to solve that problem as soon as possible.

    Best regards,
    Dr.Plug

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: PlugPDF does not handle size changes of the ReaderView well
Your information: