From 31ae252dcc75083edd4c8bf9665601395aae977b Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Thu, 30 May 2024 10:52:05 -0400 Subject: [BugFix] Resume on headphone plug causes screen glitches Change-Id: I396a662124a20420f6099522570c14cef4993205 --- apps/misc.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/misc.c b/apps/misc.c index b8e69d09c6..dd73c98a69 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -555,7 +555,14 @@ static void hp_unplug_change(bool inserted) if ((audio_stat & AUDIO_STATUS_PLAY) && headphone_caused_pause && global_settings.unplug_mode > 1 ) - unpause_action(true); + { + 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); + } headphone_caused_pause = false; } else { if ((audio_stat & AUDIO_STATUS_PLAY) && -- cgit v1.2.3