Closed Bug 847241 Opened 12 years ago Closed 12 years ago

Make switching to an app feel faster

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:-, b2g18+ fixed)

RESOLVED FIXED
blocking-b2g -
Tracking Status
b2g18 + fixed

People

(Reporter: julienw, Assigned: julienw)

References

Details

Attachments

(2 files, 1 obsolete file)

In the current code, there is a delay between the moment the user tap on a card, and the moment the card is appearing. Also, the user see the animation of removing the card switcher before showing the app. This is not nice.
Attached patch patch v1 (obsolete) — Splinter Review
(see also PR https://github.com/mozilla-b2g/gaia/pull/8422; the PR also has the patch to Bug 846768) - use the event appopen instead of appwillopen to hide the card switcher; this makes the card switcher disappear after showing the app, and thus this is nicer. - disable the transition when we want to remove "immediately" the card switcher - add some unit tests about the card switcher showing or hiding --- apps/system/js/cards_view.js | 52 +++++++++------- apps/system/js/window_manager.js | 3 +- apps/system/style/cards_view/cards_view.css | 6 +- apps/system/test/unit/cards_view_test.js | 72 +++++++++++++++++++++- apps/system/test/unit/mock_lock_screen.js | 3 + apps/system/test/unit/mock_popup_manager.js | 5 ++ apps/system/test/unit/mock_sleep_menu.js | 3 +- apps/system/test/unit/mock_trusted_ui_manager.js | 2 + apps/system/test/unit/mock_window_manager.js | 6 +- 9 files changed, 123 insertions(+), 29 deletions(-) create mode 100644 apps/system/test/unit/mock_lock_screen.js create mode 100644 apps/system/test/unit/mock_popup_manager.js The patch may need to be applied on top of Bug 846768's patch, I didn't try on plain master.
Assignee: nobody → felash
Attachment #720489 - Flags: review?(timdream)
tracking-b2g18: --- → ?
Flags: in-testsuite+
Attachment #720489 - Flags: review?(timdream) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Attached patch patch v2Splinter Review
carrying r=timdream This is the patch that landed with the following changes to the previous patch: - put back the visibility in the CSS transition; otherwise the cards view is hidden as soon as the class is changed and we don't see the transition. I changed the transition easing to step-end though, as visibility doesn't have a numeric value anyway. - I check for (cardDiff == 0) before calculating the absolute value.
Attachment #720489 - Attachment is obsolete: true
Attachment #720587 - Flags: review+
Comment on attachment 720587 [details] [diff] [review] patch v2 I'd love this to land on v1-train. risks: low, it has (small) unit tests to at least test that the card switcher is showing and hiding. So the only risks are on the transitions, but I tested this well. Advantages: the app switching occurs as soon as the user taps the card, instead of after the card-hiding transition. This feels a lot better. Tested: yes of course l10n changes: none
Attachment #720587 - Flags: approval-gaia-v1?(21)
asking for tef? too as QC might want this.
blocking-b2g: --- → tef?
Hum the cardDiff change should have gone in the patch in Bug 846768 and thus introduce a dependency. So, uplifters, please land the patch in Bug 846768 before this one.
My last minute changes introduced a very small regression. So here is a follow-up to revert one of the (useless) changes : master: https://github.com/mozilla-b2g/gaia/commit/cb368d63abd8505b7afa9f4c1bb6a5979bb5f537
Reopen for bustage patch fix.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
jason, I already landed it, should this stay opened ?
(In reply to Julien Wajsberg [:julienw] from comment #10) > jason, I already landed it, should this stay opened ? Oh, well, in that case, let's close again. Didn't realize it was already landed.
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
Tracking, go ahead with uplift to v1.1
Attachment #720587 - Flags: approval-gaia-v1?(21)
this was fixed as part of bug 801306 on v1-train and landed there in commit: 8cf4fede0811843b14217caa0619982b7aae49b0
follow up landed as master: cb368d63abd8505b7afa9f4c1bb6a5979bb5f537
(not a core perf usecase we are focusing on for v1.0.1)
blocking-b2g: tef? → -
Blocks: 868076
Contrary to comment #13, I don't think that commit fixed this issue (building current v1-trains still exhibits the issue) - cherry-picking the commit from master does solve this issue though. I think this still needs uplifting to v1-train.
Comment on attachment 720587 [details] [diff] [review] patch v2 NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): - User impact if declined: some transitions are done faster, making the switch to an app faster Testing completed: yes, this is in master for 2 months Risk to taking this patch (and alternatives if risky): very low, and there are unit tests String or UUID changes made by this patch: none note: this was supposed to be uplifted a long time ago but it apparently failed.
Attachment #720587 - Flags: approval-gaia-v1?(21)
Comment on attachment 720587 [details] [diff] [review] patch v2 Approving - we'll just back out if it regresses.
Attachment #720587 - Flags: approval-gaia-v1?(21) → approval-gaia-v1+
Julien, this patch does not apply cleanly to v1-train. Could you please take a look at the conflicts?
Flags: needinfo?(felash)
v1-train: 53f9e4f70911d3e083d25730490263a60041f37d -> 790b7c32953ffa5e3078d868b3e8789800e19f77 v1-train: cb368d63abd8505b7afa9f4c1bb6a5979bb5f537 -> fe7d06f44b19e11aa20c45c5df2720bf27d84dd7 I see some visual artefacts when I display the Contacts app from the card switcher, but this is probably unrelated, and possibly because I'm using a m-c build right now. But when verifying this bug, please test this and file a bug if you find the same visual artefacts.
Flags: needinfo?(felash)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: