Suppress action screen Full refresh for Eink

This commit is contained in:
HarukiToreda 2025-06-24 14:52:43 -04:00
parent ca7d2d7482
commit c5e3bc841e

View File

@ -140,7 +140,11 @@ extern bool hasUnreadMessage;
void Screen::showOverlayBanner(const char *message, uint32_t durationMs, const char **optionsArrayPtr, uint8_t options,
std::function<void(int)> bannerCallback, int8_t InitialSelected)
{
// Store the message and set the expiration timestamp
#ifdef USE_EINK
EINK_ADD_FRAMEFLAG(dispdev, DEMAND_FAST); // Skip full refresh for all overlay menus
#endif
// Store the message and set the expirati
on timestamp
strncpy(NotificationRenderer::alertBannerMessage, message, 255);
NotificationRenderer::alertBannerMessage[255] = '\0'; // Ensure null termination
NotificationRenderer::alertBannerUntil = (durationMs == 0) ? 0 : millis() + durationMs;