adrian-bl/vanilla — pull request #28 by kieranclancy (2013-03-22 06:07:23+00:00)
Title: Use FLAG_SHOW_WHEN_LOCKED as well as FLAG_DISMISS_KEYGUARD

Since I updated to Jellybean on my SGS2, the misc. option "disable lock screen" has stopped working. This option is important for people who use their phone to play music when in a car hands-free holder, because it allows you to control the music using screen swipes etc. while still concentrating on the road.

Vanilla player used to just use FLAG_DISMISS_KEYGUARD, which worked previously (possibly a bug in previous builds of Samsung GS2), but that now only works if the keyguard is not a "secure lock screen", and the API notes suggest to combine it with FLAG_SHOW_WHEN_LOCKED.

I have tested that this patch works as intended.