1
0
Fork 0
forked from len0rd/rockbox

[BugFix] Resume on headphone plug causes screen glitches

Change-Id: I396a662124a20420f6099522570c14cef4993205
This commit is contained in:
William Wilgus 2024-05-30 10:52:05 -04:00 committed by William Wilgus
parent bbdba53413
commit 31ae252dcc

View file

@ -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) &&