Closed Bug 1072143 Opened 10 years ago Closed 10 years ago

[LockScreen] Add |transferOut| method in LockScreenStateManager

Categories

(Firefox OS Graveyard :: Gaia::System::Lockscreen, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gweng, Assigned: gweng)

References

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
timdream
: review+
Details | Review
In Bug 1062549 we've found the state machine now lacks the method for transferring out from a specific state. This should be implemented to avoid duplicately put code in each state.
Assignee: nobody → gweng
Attached file Patch
Add the method first, and I think we can fire another bug to use it.
Attachment #8500846 - Flags: review?(timdream)
Comment on attachment 8500846 [details] [review]
Patch

We need to work on better testing strategy of the promise chain. Let's talk about this on Monday, thanks!
Attachment #8500846 - Flags: review?(timdream)
Blocks: 1075389
We need this to add the proper fix for Bug 1075389.
Comment on attachment 8500846 [details] [review]
Patch

Updated according to reviewing opinions.
Attachment #8500846 - Flags: review?(timdream)
Comment on attachment 8500846 [details] [review]
Patch

Please address the reivew comments.
Attachment #8500846 - Flags: review?(timdream)
Comment on attachment 8500846 [details] [review]
Patch

Updated and set review again, thanks.
Attachment #8500846 - Flags: review?(timdream)
Attachment #8500846 - Flags: review?(timdream) → review+
I have found some visual regression would happen when you power off/on it transiently. Discussed with Tim and eased it, but there is still some issue need to be solved. One left issue is although I can cancel all animation while sleep the screen, the animation still need some very short time to perform, so if user turn it on/off/on quickly there would be some delayed step show the panel at the previous position.

A possible solution is to keep the screen slept before the animation done. But I don't know from our current code flow how to do that without too much modification, especially I don't want to change any code in screen manager for this patch...
Comment on attachment 8500846 [details] [review]
Patch

Since I fix the regression, set review again.
Attachment #8500846 - Flags: review+ → review?(timdream)
Comment on attachment 8500846 [details] [review]
Patch

Sorry for the delay. Let's figure out what to move to the transferOut functions in next patches.
Attachment #8500846 - Flags: review?(timdream) → review+
It only failed at Gaia build test (which is totally irrelevant and it's timeout issue):

https://treeherder.mozilla.org/ui/#/jobs?repo=gaia-try&revision=d7d08b4ed294

So I would land this patch.
master: https://github.com/mozilla-b2g/gaia/commit/b59c013f706e6fd68af2f24b3077497293f66d88

Hope it would not be backed out.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: