Closed Bug 1110673 Opened 10 years ago Closed 10 years ago

[System] When disabling/enabling auto-brightness, the previous brightness is not restored

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: julienw, Assigned: julienw)

References

Details

(Keywords: regression)

Attachments

(1 file)

STR:
1. open Settings > Display panel
2. check that brightness auto-adjust is enabled
3. disable it
4. set the brightness setting to something different (maximum for example)
5. enable auto-adjust
=> the brightness does not change until it changes to a different enough value.

This is a regression from bug 1042673.
Note that even before bug 1042673 the same symptom could happen because of a platform issue (see bug 989281 for more information), but bug 1042673 made it more apparent by adding a gaia bug on top of this issue.
Attachment #8535528 - Flags: review?(timdream)
Assignee: nobody → felash
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → ARM
Comment on attachment 8535528 [details] [review]
[PullReq] julienw:1110673-fix-regression-with-previousLux to mozilla-b2g:master

nit: s/null/undefined/ since the property point to a number?
Attachment #8535528 - Flags: review?(timdream) → review+
(In reply to Tim Guan-tin Chien [:timdream] (MoCo-TPE) (please ni?) from comment #2)
> Comment on attachment 8535528 [details] [review]
> [PullReq] julienw:1110673-fix-regression-with-previousLux to
> mozilla-b2g:master
> 
> nit: s/null/undefined/ since the property point to a number?

Usually I like to think of "undefined" as "I haven't set a value to this variable yet, but "null" is "I set a value to this variable that is not a real value". I don't take the variable type into account.

That said, I don't really mind, I can do this change.
Keywords: checkin-needed
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: