View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011342 | MMA | Playback | public | 2013-10-04 16:29 | 2013-10-30 06:26 |
Reporter | rusty | Assigned To | |||
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.0.4 | ||||
Target Version | 1.0.4 | Fixed in Version | 1.0.4 | ||
Summary | 0011342: Lock screen player fails to activate if MMA isn't in focus | ||||
Description | The lock screen player seems to function correctly if the lock screen become active when MMA was the last active app. BUT, if MMA is in the background when the lock screen is activated, the lock screen player doesn't work at all: 1 play a track in MMA 2 press 'Back' --> Android Home Screen is in focus, and MMA is in the background playing (with icon in the notifications bar 3 Wait for the screen to turn off 4 Press Power button to trigger the lock screen player --> Lock screen player fails to appear Tested MMA 167 on GS3 running Android 4.1.1 | ||||
Tags | No tags attached. | ||||
Fixed in build | 177 | ||||
related to | 0010985 | closed | martin | Lock screen doesn't activate using 'home button' (regression in 145--it fails completely) |
related to | 0011402 | closed | martin | Back button causes MMA to become 'inaccessible' (regression) |
related to | 0011410 | closed | rusty | When paused MMA causes screen to flash / behave strangely |
|
Fixed in build 173. |
|
Tested 173 on Android 4.1.1 / GS3, and the bug occurs exactly as in previous builds. |
|
Fixed in build 175. |
|
This still fails to work on a GS3 running Android 4.1.1, when following the steps described. |
|
Fixed in build 176. Many changes - it should test deeply. |
|
Tested build 176 with a GS3 running Android 4.1.1 and found that this issue along with many others remain. I tested this extensively, though, and found relationships between the various problems that occur that may be helpful to debug this: 1 enable the lock screen player via the options menu, and initiate playback 2 press 'back' to exit to the Android home screen --> MMA icon appears in the notifications bar 3 press 'power' to trigger the lock screen player 4 press 'power' again to turn on the screen --> Lock screen player appears 5 press 'home' or 'back' to get to the lock screen --> MMA icon continues to be displayed in the notifications bar 6 sign in to get past the lock screen --> (A) MMA is not the active application as it should be--the Android home screen is shown instead! 7 Click the MediaMonkey icon in order to access the MMA UI --> (B) The screen briefly flashes but MMA UI won't appear! This bug is contingent upon the Lock screen having appeared at step 4; If the Lock screen doesn't appear as in step 11 below, then as described in step 12, this issue doesn't occur. 8 Click the MediaMonkey icon again --> MMA UI appears 9 Click 'back' to exit from the MMA UI to the Android home screen --> (C) Now the MMA icon no longer appears in the notifications bar! (this will only occur if bug (B) occurred immediately prior--if you click the MMA icon again, let playback proceed for a bit, and then re-minimize, then the MMA icon will appear in the notifications bar) --> (D) Moreover, if (C) has occurred, then if you switch to the Applications manager, you'll see that the MMA process will never terminate while in this state! 10 press 'power' to trigger the lock screen player (or wait for the lock screen timeout) 11 press 'power' again to turn on the screen --> (E) Lock screen player fails to appear! (this only occurs if bug (C) occurred immediately prior) 12 Click the MediaMonkey icon in order to access the MMA UI --> This time (in contrast to step 7) the MMA UI appears. Note: the only way to get the Lock Screen Player working again is as described in bug (C)--to get out of that state by allowing MMA to play for some time in the maximized state. There is one more related bug (F), that strange flashing behavior can occur whenever the Lock screen player is enabled. Unlike the issues above, it's not related to activation of the Lock Screen, but rather to activation of the Display timeout: 1 Play track in MMA 2 wait for Android screen to turn off 3 press power button to turn it back on (before the security timeout occurs i.e. no logon screen) --> MMA flashes 3 times as it turns on This bug is even worse when MM is minimized i.e. 1 Play track in MMA 2 Press back to exit to Android home screen 3 wait for Android screen to turn off 4 press power button to turn it back on (before the lockscreen timeout occurs) --> MMA briefly comes into focus and then minimizes! Note: similar flashing behavior occurs even if MM is in focus |
|
So, I changed detection of MMA visibility (important for MMA playback notification) and behaviour about Lock Screen player activation. ScreenOn(PowerOn) action is now what causes that LockScreen player appears. Behaviour is similar to PowerAmp lockscreen player now. I need to clarify point (A): Locksreen player was activated from Android home screen --> upon unlock lockscreen - we get to Android home screen again Locksreen player was activated from MMA -> a) we press home button at Lockscreen player - we get to Android home screen after unlock (we can't changed HomeButton behaviour) b) we press back button at Lockscreen player - we get to back to MMA In current version lock screen player appears in cases: a) We are out of MMA app and playbackService is running(PlaybackNotification has to be displayed) b) We are in MMA app and playbackService is running, or for android versions < 4.1(apparently) - when MMA is foreground for > 4.1 lockscreen causes that MMA thinks that is in background. (Same behaviour has PowerAmp for all Android versions) |
|
Tested 177 briefly and the behavior now seems more deterministic. Waiting for a fix to 0011402 before verifying. |
|
Verified 178. |