Closed Bug 1028443 Opened 10 years ago Closed 10 years ago

[Vertical Homescreen] Pressing the home button returns to top after showing card views

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v2.0 affected, b2g-v2.1 affected)

RESOLVED WORKSFORME
Tracking Status
b2g-v2.0 --- affected
b2g-v2.1 --- affected

People

(Reporter: jlorenzo, Unassigned)

References

Details

(Whiteboard: [systemsfe])

Attachments

(1 obsolete file)

STR
1. Go to the bottom of the homescreen
2. Long press the home button to show the card views
3. Tap the home button again

Expected results
Tapping the home button should return to the homescreen

Actual
Tapping the home button returns to the homescreen and triggers the animation which makes the homescreen go to the top
From a UX perspective, is the current behavior the correct one?
Flags: needinfo?(jsavory)
No, in this case the expected results is the correct behaviour. 
When the user taps home from the cards view it should only return them to the homescreen. The homescreen should not change its position.
Flags: needinfo?(jsavory)
Blocks: vertical-home-next
No longer blocks: 1015336
QA Whiteboard: [VH-FL-blocking-][VH-FC-blocking-]
Seems like when cards view is open we should not dispatch the home event to the homescreen.
Component: Gaia::Homescreen → Gaia::System
Attached patch 1028443.patch (obsolete) — Splinter Review
Hi Alive, I only want to help here but I don't know if this is the correct patch to fix it. Could you take a look at this patch? Thanks a lot for your support
Attachment #8445093 - Flags: feedback?(alive)
Attachment #8445093 - Flags: feedback?(alive) → review?(alive)
Comment on attachment 8445093 [details] [diff] [review]
1028443.patch

Review of attachment 8445093 [details] [diff] [review]:
-----------------------------------------------------------------

If we don't ensure the homescreen here and it's killed while task manager is shown,
then the patch will never get the homescreen back while the task manager appears and the user press home button.

The proper solution looks to me is
(1) Listen home event in task manager
(2) Stop immediate propagation and hide self
*(3) Make sure app window manager registers the home event after the task manager to make (2) happen.*
Attachment #8445093 - Flags: review?(alive)
Attachment #8445093 - Attachment is obsolete: true
I thought about it but I didn't know how to fix it because the app window manager is initialized by itself when it is appended to the DOM but the task manager is created after the page is loaded in the bootstrap. It does not seem a straightforward implementation for me because of my lack of knowledge regarding to system app.
It is working fine now once that the bug 1020917 was landed
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
See Also: → 1020917
No longer blocks: vertical-home-next
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: