[Bugfix] WPS pause while WPS not active causes display corruption

Discovered this in the sim with car adapter mode: on

when charger gets disconnected the device is paused

if you have a different screen up the scrolling elems
get redrawn incorrectly over the current screen

to fix check the activity is the WPS, FM, or RECORDING  before allowing redraw

Change-Id: Ie3618347fde446fe0b78b9d3c67261ca63ffee1c
This commit is contained in:
William Wilgus 2025-02-24 09:58:28 -05:00
parent 4a6b27a712
commit 19956a0777
2 changed files with 10 additions and 7 deletions

View file

@ -566,12 +566,7 @@ static void hp_unplug_change(bool inserted)
headphone_caused_pause &&
global_settings.unplug_mode > 1 )
{
enum current_activity act = get_current_activity();
/* only do a skin refresh if in one of the below screens */
bool refresh = (act == ACTIVITY_FM ||
act == ACTIVITY_WPS ||
act == ACTIVITY_RECORDING);
unpause_action(refresh);
unpause_action(true);
}
headphone_caused_pause = false;
} else {