Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't clear the "residual" artifacts from the screen using EpdController #78

Open
vzukanov opened this issue Mar 6, 2022 · 0 comments

Comments

@vzukanov
Copy link

vzukanov commented Mar 6, 2022

When navigating between screens in the app, there are "residual" artifacts from the previous screens that remain visible. They look like pale shadows. I noticed the same artifacts when using Onyx demo app.
Inside your tutorial app, if I go to Epd Demo screen and click on "Full Update", the screen refreshes and the artifacts from previous screens are deleted. Inside the code, I traced the execution path to this code inside EpdDemoActivity:

        } else if (v.equals(button_screen_refresh)) {
            updateTextView();
            EpdController.repaintEveryThing(UpdateMode.GC);
        }

So, I thought that a call to EpdController.repaintEveryThing(UpdateMode.GC) should do the trick in my app as well, but it wasn't the case. As far as I can see, this call has no effect at all.

I'm not sure how come the same API call works in one app, but doesn't work in another. I use exactly the same versions of SDKs:


    // Onyx SDKs
    implementation('com.onyx.android.sdk:onyxsdk-device:1.2.5')
    implementation('com.onyx.android.sdk:onyxsdk-pen:1.3.1')

So, how do I repaint the screen and remove "residual" artifacts in my app?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant