Closed Bug 942140 Opened 11 years ago Closed 11 years ago

[Settings] when invoked as an activity, we should have a cross instead of a back button and pressing it should move back to the caller

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-v1.3 fixed, b2g-v1.3T fixed)

VERIFIED FIXED
1.3 Sprint 6 - 12/6
Tracking Status
b2g-v1.3 --- fixed
b2g-v1.3T --- fixed

People

(Reporter: noemi, Assigned: arcturus)

References

Details

Attachments

(1 file)

Unagi device master 11/22 build:
Gecko: 07ce8fb
Gaia: 68943ea
Build Identifier: 20131122111853
Platform version: 28.0a1

STR:
1. Open messaging app
2. Tap on new message icon or an existing message thread
3. Tap on more options icon "..."
4. Tap on Settings, then Cellular & Data > Message Settings is opened (wrong path, it will be changed in bug 942123)


EXPECTED:
Once in Cellular & Data > Message Settings,
back button should take the user back where they came from and settings changes made won't be applied
OK button should take the user back where they came from and settings changes made will be applied

ACTUAL:
Once in Cellular & Data > Message Settings, neither back button nor OK one are responsive, there is no way to back apart from long tap on home
blocking-b2g: --- → 1.3?
Depends on: 942123
This is a settings issue that doesn't handle the configure activity correctly.

Flagging Arthur on this :)
Component: Gaia::SMS → Gaia::Settings
Flags: needinfo?(arthur.chen)
It is expected as currently settings app does not support inline activities. :(
Flags: needinfo?(arthur.chen)
Arthur, I disagree with this. Even "window" activities can use a returnValue and call "postResult".
Flags: needinfo?(arthur.chen)
I agree. I Just wanted to point out that it is not a bug but more like a feature request.
Flags: needinfo?(arthur.chen)
Yep, I agree with that :)

Except it really breaks our workflow right now :(
Summary: [B2G][Messages] back/OK buttons within message settings are unresponsive → [Settings] when invoked as an activity, we should have a cross instead of a back button and pressing it should move back to the caller
This also impacts the Download Manager feature.
Blocks: 935094
Can try to take a look.

Assigning to myself, if I don't find the cycles tomorrow will return it back.
Assignee: nobody → francisco.jordano
Depends on: 944253
Attached file Pointer to PR 14168
Hi Kaze, sending the review:

- Added a new dataset element 'dialog' to the panel in settings opened by the activity.
- Changing the current back icon for a close one.
- When closing an activity coming back to the opener app, and restoring settings status (since it will keep open in the background)

Cheers,
F.
Attachment #8340182 - Flags: review?(kaze)
Comment on attachment 8340182 [details] [review]
Pointer to PR 14168

Besides the comments I left on your PR, I’m a bit worried that this patch assumes that all activity panels have to be direct “children” of the main #root panel. Are we sure it will always be true? And that we’re not breaking existing activities?
Attachment #8340182 - Flags: review?(kaze)
Comment on attachment 8340182 [details] [review]
Pointer to PR 14168

Thanks for the review Kaze,

addressed the comments, new review ready :)
Attachment #8340182 - Flags: review?(kaze)
Attachment #8340182 - Flags: review?(kaze) → review+
Landed after travis green \o/

https://github.com/mozilla-b2g/gaia/commit/fc2d23dbf2989edd0b8131d00e94b18d5cfb3a1c
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.3 Sprint 6 - 12/6
This bugs has been checked with 12/04 master build:
Gecko-2dc4d2d
Gaia-573304f

And it is ok, but there is a particular scenario related to it for which a new follow up bug has been open, please see: Bug 946250
Status: RESOLVED → VERIFIED
This bug reaches v1.3 before branching. Update flags to express the fact (hope I did this correctly).
blocking-b2g: 1.3? → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: