summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2024-05-30 10:52:05 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2024-06-02 17:09:24 -0400
commit31ae252dcc75083edd4c8bf9665601395aae977b (patch)
tree6c2e2191c1e3f9efcf18e5833cca4f4ec58c88c7
parentbbdba5341339d5607dabedde5e15d24b19dff619 (diff)
downloadrockbox-31ae252dcc75083edd4c8bf9665601395aae977b.tar.gz
rockbox-31ae252dcc75083edd4c8bf9665601395aae977b.zip
[BugFix] Resume on headphone plug causes screen glitches
Change-Id: I396a662124a20420f6099522570c14cef4993205
-rw-r--r--apps/misc.c9
1 files changed, 8 insertions, 1 deletions
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)
555 if ((audio_stat & AUDIO_STATUS_PLAY) && 555 if ((audio_stat & AUDIO_STATUS_PLAY) &&
556 headphone_caused_pause && 556 headphone_caused_pause &&
557 global_settings.unplug_mode > 1 ) 557 global_settings.unplug_mode > 1 )
558 unpause_action(true); 558 {
559 enum current_activity act = get_current_activity();
560 /* only do a skin refresh if in one of the below screens */
561 bool refresh = (act == ACTIVITY_FM ||
562 act == ACTIVITY_WPS ||
563 act == ACTIVITY_RECORDING);
564 unpause_action(refresh);
565 }
559 headphone_caused_pause = false; 566 headphone_caused_pause = false;
560 } else { 567 } else {
561 if ((audio_stat & AUDIO_STATUS_PLAY) && 568 if ((audio_stat & AUDIO_STATUS_PLAY) &&