Closed
Bug 1023810
Opened 12 years ago
Closed 8 years ago
[App2App Transition] When window activity is finished, consider the create time of its caller to go back.
Categories
(Firefox OS Graveyard :: Gaia::System::Window Mgmt, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: alive, Assigned: alive)
References
Details
(Whiteboard: interaction-design)
Attachments
(1 external file)
https://bugzilla.mozilla.org/show_bug.cgi?id=1023046#c8
We are missing the activitydone handler which is also doing the app2app transition.
+++ This bug was initially created as a clone of Bug #1023046 +++
This is inspired from https://bugzilla.mozilla.org/show_bug.cgi?id=1016280#c18
Currently we always use left-out-right-in transition between app to app transitions. But since we are introducing sheets and old sheets are left side/new sheets are right side, I think we could improve this by change the transition when the nextApp is not a new created App in AppWindowManager.
| Assignee | ||
Comment 1•12 years ago
|
||
I made a patch
https://github.com/alivedise/gaia/compare/bugzilla;1023810;window-dispositon-activitydone-go-back-transition?expand=1
But after discussing with Rudy, I think make it query the order from stack manager to decide the transition makes more sense than using createdTime.
I don't want to call stackManager in appWindow in order to keep appWindow clean,
wanna to do some brainstorm here: How to query "the ordering of two app window instances in the stack"?
Etienne, thought?
Flags: needinfo?(etienne)
Comment 2•12 years ago
|
||
(In reply to Alive Kuo [:alive][NEEDINFO!] from comment #1)
> I made a patch
> https://github.com/alivedise/gaia/compare/bugzilla;1023810;window-dispositon-
> activitydone-go-back-transition?expand=1
>
> But after discussing with Rudy, I think make it query the order from stack
> manager to decide the transition makes more sense than using createdTime.
>
> I don't want to call stackManager in appWindow in order to keep appWindow
> clean,
> wanna to do some brainstorm here: How to query "the ordering of two app
> window instances in the stack"?
>
> Etienne, thought?
Interesting...
The StackManager could set a `movedOnTopTime` on the AppWindow object every time a window is inserted or moved to the top of the stack.
It's way lighter than maintaining a position property on each AppWindow and I think it should do the trick :)
Flags: needinfo?(etienne)
| Assignee | ||
Comment 3•12 years ago
|
||
(In reply to Etienne Segonzac (:etienne) from comment #2)
> (In reply to Alive Kuo [:alive][NEEDINFO!] from comment #1)
> > I made a patch
> > https://github.com/alivedise/gaia/compare/bugzilla;1023810;window-dispositon-
> > activitydone-go-back-transition?expand=1
> >
> > But after discussing with Rudy, I think make it query the order from stack
> > manager to decide the transition makes more sense than using createdTime.
> >
> > I don't want to call stackManager in appWindow in order to keep appWindow
> > clean,
> > wanna to do some brainstorm here: How to query "the ordering of two app
> > window instances in the stack"?
> >
> > Etienne, thought?
>
> Interesting...
>
> The StackManager could set a `movedOnTopTime` on the AppWindow object every
> time a window is inserted or moved to the top of the stack.
> It's way lighter than maintaining a position property on each AppWindow and
> I think it should do the trick :)
Hmmm..there is a problem here.
The ordering in StackManager will be updated each time 'launchapp' event is fired.
But a window disposition activity may go to an old window or new window, it depends.
So any time window disposition activity is triggered, the order will change.
A -> B(new) -> A(old) now the ordering is B > A
A -> B -> A now the ordering is A > B
If you switch back and forth you will find the transition changes every time.
Comment 4•12 years ago
|
||
(In reply to Alive Kuo [:alive][NEEDINFO!] from comment #3)
> So any time window disposition activity is triggered, the order will change.
But isn't that the expected behavior?
Flags: needinfo?(rmacdonald)
| Assignee | ||
Comment 5•12 years ago
|
||
(In reply to Etienne Segonzac (:etienne) from comment #4)
> (In reply to Alive Kuo [:alive][NEEDINFO!] from comment #3)
> > So any time window disposition activity is triggered, the order will change.
>
> But isn't that the expected behavior?
If that is expected we will end up having bug 1023046 again.
So my WIP is using my own 'manual launch' time to implement this, instead of using stack manager.
| Assignee | ||
Comment 6•12 years ago
|
||
Try these scenarios:
(1) Open settings, and open message. Then click the settings from right-top corner. Then click X button of message setting panel. Back/forth.
(2) Kill settings and open message. Then click the settings from right-top corner. Then click X button of message setting panel. Back/forth.
(3) Open settings and goto keyboard settings and click built-in keyboard. Click the X button of the built-in keyboard setting panel. Back/forth.
Ignore the weird settings main panel to message-settings panel transition. It's a settings app issue.
| Assignee | ||
Comment 7•12 years ago
|
||
(In reply to Alive Kuo [:alive][NEEDINFO!] from comment #6)
> Created attachment 8439127 [details] [review]
> Proposed fix
>
> Try these scenarios:
> (1) Open settings, and open message. Then click the settings from right-top
> corner. Then click X button of message setting panel. Back/forth.
> (2) Kill settings and open message. Then click the settings from right-top
> corner. Then click X button of message setting panel. Back/forth.
> (3) Open settings and goto keyboard settings and click built-in keyboard.
> Click the X button of the built-in keyboard setting panel. Back/forth.
>
> Ignore the weird settings main panel to message-settings panel transition.
> It's a settings app issue.
This fixed all the scenarios above but I'd listen if UX have different opinions.
Comment 8•12 years ago
|
||
I can't replicate this as I'm unable to get into messaging settings. However, I believe my comment from bug 1023046 may be relevant and am pasting it below for your reference.
I'll be reviewing similar issues on Friday and likely arrange a meeting early next week to discuss as there seems to be some confusion surrounding this.
> (In reply to Alive Kuo [:alive][NEEDINFO!] from comment #10)
> > So the proposed fix would be:
> > Decide the app to app transition according to the ordering in the sheet
> > stack.
> > If the opening app is elder than current app, it comes from left;
> > if the opening app is newer than current app, it comes from right.
>
> Hi Alive...
>
> Here's the reference from page 20 of the spec, which is located in box at
> https://mozilla.box.com/s/ehnzpk0dnqdwk6qtf6x5
>
> --- start snippet ---
> Apps are ordered based on when they were launched. The most recently
> launched app is placed on the top (far right) of the sheet stack.
>
> An app is considered "launched" when...
> - The user taps on the app icon on the home grid
> - The user taps on the app preview in the task manager
> - The user taps on a notification in the utility tray
> - An app launches another app (excluding sub-tasks).
> In app navigation does not affect the order of sheets within the stack.
>
> --- end snippet ---
>
> So, if app A launches app B, app B is moved to the top (far right) of the
> sheet stack... regardless of whether it's been launched previously. So app B
> slides in from the right edge of the screen moving left.
>
> Subtasks are an exception and, rather than spawning a new sheet, exist on
> top of the existing sheet. This is described in page 13 of the spec. The
> transition for subtasks should be the same as an activity, although this too
> is inconsistent currently across apps. Currently activities slide in from
> the bottom, but the intent is to have these fade in instead.
>
>
Flags: needinfo?(rmacdonald)
| Assignee | ||
Comment 9•12 years ago
|
||
(In reply to Rob MacDonald [:robmac] from comment #8)
> I can't replicate this as I'm unable to get into messaging settings.
It's Message "app"'s right-top corner.
> However, I believe my comment from bug 1023046 may be relevant and am
> pasting it below for your reference.
>
> I'll be reviewing similar issues on Friday and likely arrange a meeting
> early next week to discuss as there seems to be some confusion surrounding
> this.
>
Comment 10•12 years ago
|
||
I still feel this should be an inline activity.
As a user, when choosing "Settings" in the sms app, I'm always going "deeper" in the hierarchy, and it's weird that sometimes the Settings app slides from the left and sometimes from the right.
So ideally an inline activity and if not, I think changing the stack order for window activities is OK, at least it's consistent.
Comment 11•8 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•