fix: eliminate e-ink ghosting on menu navigation and beautify UI #196
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
E-ink display showed significant ghosting when navigating between menu screens (file browser, settings, home, chapter selection). The custom LUT that clears ghosting (HALF_REFRESH) was not being applied consistently when entering or re-entering menu activities.
Root Cause
Solution
FileSelectionActivity (most complex case)
lastRenderedPathstring comparison to detect actual directory changes race-free.HALF_REFRESHonly when the path differs (directory changed), not on navigation within the same directory.updateRequiredwrites with a mutex to ensure synchronization between input and display tasks.Other Menu Activities (Home, Settings, EpubChapterSelection, XtcChapterSelection)
isFirstRenderflag reset inonEnter()method to ensureHALF_REFRESHis applied every time the activity is entered.UI Improvements
> FolderName(removed trailing slashes).Testing