forked from len0rd/rockbox
[BugFix] Resume on headphone plug causes screen glitches
Change-Id: I396a662124a20420f6099522570c14cef4993205
This commit is contained in:
parent
bbdba53413
commit
31ae252dcc
1 changed files with 8 additions and 1 deletions
|
|
@ -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) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue