Merge lp:~xavi-garcia-mena/indicator-sound/warning-volume-set-to-warn-level into lp:indicator-sound/15.10
Status: | Merged |
---|---|
Approved by: | Charles Kerr |
Approved revision: | 536 |
Merged at revision: | 531 |
Proposed branch: | lp:~xavi-garcia-mena/indicator-sound/warning-volume-set-to-warn-level |
Merge into: | lp:indicator-sound/15.10 |
Prerequisite: | lp:~xavi-garcia-mena/indicator-sound/last-running-player-accounts-service |
Diff against target: |
39 lines (+8/-4) 2 files modified
src/volume-warning.vala (+7/-3) tests/notifications-test.cc (+1/-1) |
To merge this branch: | bzr merge lp:~xavi-garcia-mena/indicator-sound/warning-volume-set-to-warn-level |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Charles Kerr (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+287610@code.launchpad.net |
Commit message
To avoid going too below the warning level we set the volume when showing the warning dialog to the loud_volume level.
The spec states:
Whenever you increase volume, for the first time in 20 hours, such that acoustic output would be more than 85 dBA, an “Increase Volume” dialog should appear.
So the loud_volume is still a valid level.
After setting this the user has only to press the Up button once to show the warning dialog again.
When setting the loud_volume-1 value the level was decreased 2 steps below the warning level and the used had to press the up button twice.
Description of the change
To avoid going too below the warning level we set the volume when showing the warning dialog to the loud_volume level.
The spec states:
Whenever you increase volume, for the first time in 20 hours, such that acoustic output would be more than 85 dBA, an “Increase Volume” dialog should appear.
So the loud_volume is still a valid level.
After setting this the user has only to press the Up button once to show the warning dialog again.
When setting the loud_volume-1 value the level was decreased 2 steps below the warning level and the used had to press the up button twice.
PASSED: Continuous integration, rev:536 jenkins. qa.ubuntu. com/job/ indicator- sound-ci/ 316/ jenkins. qa.ubuntu. com/job/ indicator- sound-wily- amd64-ci/ 91 jenkins. qa.ubuntu. com/job/ indicator- sound-wily- armhf-ci/ 92 jenkins. qa.ubuntu. com/job/ indicator- sound-wily- armhf-ci/ 92/artifact/ work/output/ *zip*/output. zip
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/indicator- sound-ci/ 316/rebuild
http://