Closed
Bug 942716
Opened 12 years ago
Closed 12 years ago
Add a developer menu in the system app
Categories
(Firefox OS Graveyard :: Gaia, defect)
Firefox OS Graveyard
Gaia
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: vingtetun, Assigned: vingtetun)
References
Details
Attachments
(2 files)
3.22 KB,
patch
|
alive
:
review+
|
Details | Diff | Splinter Review |
3.03 KB,
patch
|
vingtetun
:
review+
|
Details | Diff | Splinter Review |
Since the settings app can be broken and since it is somewhat painful to go into Settings -> Informations -> More Informations -> Developer let's add the menu in the system app if the pref is turned on. It should not hurt as long as any of the options here is revertable and does not have a side effect of breaking something deep in the device (like resetting some data).
Assignee | ||
Comment 1•12 years ago
|
||
The current plan I have is to have some options directly into the sleep menu for developers. That will offer a easily accessible UI that is hard to break.
Assignee | ||
Comment 2•12 years ago
|
||
Alive if you're around I will need this in order to enable Async Pan Zoom for all Gaia apps today and make sure there is a way to opt-out if Settings is broken (and it will be).
I'm planning to add a second patch to add some specific menu items into it. The UX is not great yet but I don't think it matters too much since this is only for developers.
Attachment #8337577 -
Flags: review?(alive)
Comment 3•12 years ago
|
||
Comment on attachment 8337577 [details] [diff] [review]
bug942716.part1.patch
Review of attachment 8337577 [details] [diff] [review]:
-----------------------------------------------------------------
quick r+
Attachment #8337577 -
Flags: review?(alive) → review+
Assignee | ||
Comment 4•12 years ago
|
||
This is the second part of the patch, that starts to add one developer option to enable/disable async pan zoom. More options can be added in the future.
Attachment #8337586 -
Flags: review?(alive)
Comment 5•12 years ago
|
||
Comment on attachment 8337586 [details] [diff] [review]
bug942716.part2.patch
Review of attachment 8337586 [details] [diff] [review]:
-----------------------------------------------------------------
Pay attention to the callback in loop :)
::: apps/system/js/sleep_menu.js
@@ +54,5 @@
> + for (var option in this.developerOptions) {
> + var defaultValue = this.developerOptions[option].value;
> + var setting = this.developerOptions[option].setting;
> + SettingsListener.observe(setting, defaultValue, function(value) {
> + self.developerOptions[option].value = value;
Are you sure 'option' is valid even if we have other option in developerOptions? I don't think so? You need a closure maybe.
Attachment #8337586 -
Flags: review?(alive)
Assignee | ||
Comment 6•12 years ago
|
||
(In reply to Alive Kuo [:alive][NEEDINFO] from comment #5)
> Comment on attachment 8337586 [details] [diff] [review]
> bug942716.part2.patch
>
> Review of attachment 8337586 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> Pay attention to the callback in loop :)
>
> ::: apps/system/js/sleep_menu.js
> @@ +54,5 @@
> > + for (var option in this.developerOptions) {
> > + var defaultValue = this.developerOptions[option].value;
> > + var setting = this.developerOptions[option].setting;
> > + SettingsListener.observe(setting, defaultValue, function(value) {
> > + self.developerOptions[option].value = value;
>
> Are you sure 'option' is valid even if we have other option in
> developerOptions? I don't think so? You need a closure maybe.
Thanks. I'm so used to |let| that I have forgotten to pay attention to this!
Comment 7•12 years ago
|
||
And, you need two new keys in resource file for l10n pass or it may complain.
Assignee | ||
Comment 8•12 years ago
|
||
Comment on attachment 8337586 [details] [diff] [review]
bug942716.part2.patch
Carrying r+.
https://github.com/mozilla-b2g/gaia/commit/485fc6826263bc15f8aeb7a5653af2fcc4792152
Attachment #8337586 -
Flags: review+
Assignee | ||
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Assignee: nobody → 21
You need to log in
before you can comment on or make changes to this bug.
Description
•