Bug fix where freetext screen activates when alert banner shows

This commit is contained in:
HarukiToreda
2025-05-11 12:15:44 -04:00
parent d9bfed242c
commit 2f4f2b1202
3 changed files with 41 additions and 5 deletions

View File

@@ -71,6 +71,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
using namespace meshtastic; /** @todo remove */
String alertBannerMessage = "";
uint32_t alertBannerUntil = 0;
namespace graphics
{
@@ -3826,8 +3829,8 @@ void Screen::setFrames(FrameFocus focus)
ui->setFrames(normalFrames, numframes);
ui->disableAllIndicators();
// Add function overlay here. This can show when notifications muted, modifier key is active etc
static OverlayCallback overlays[] = {drawFunctionOverlay, drawCustomFrameIcons, drawAlertBannerOverlay};
// Add overlays: frame icons and alert banner)
static OverlayCallback overlays[] = {drawCustomFrameIcons, drawAlertBannerOverlay};
ui->setOverlays(overlays, sizeof(overlays) / sizeof(overlays[0]));
prevFrame = -1; // Force drawNodeInfo to pick a new node (because our list