Closed Bug 822318 Opened 13 years ago Closed 13 years ago

Silent mode doesn't silence received-text chime

Categories

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

ARM
Gonk (Firefox OS)
defect

Tracking

(blocking-basecamp:+)

VERIFIED FIXED
B2G C3 (12dec-1jan)
blocking-basecamp +

People

(Reporter: justin.lebar+bug, Assigned: vingtetun)

References

Details

Attachments

(1 file, 1 obsolete file)

STR: * Hold down the power button. * Select "silence incoming calls". * Receive a text message. Actual results: * Chime plays Expected results: * No chime plays, because we're in silent mode.
blocking-basecamp: --- → ?
blocking-basecamp: ? → +
Priority: -- → P1
Target Milestone: --- → B2G C3 (12dec-1jan)
Attached patch Patch (obsolete) — Splinter Review
Attachment #693371 - Flags: review?(etienne)
Comment on attachment 693371 [details] [diff] [review] Patch Review of attachment 693371 [details] [diff] [review]: ----------------------------------------------------------------- Using a global setting instead of trying to maintain a list of settings to toggle is definitely the way to go. Having a silent-mode.enabled setting would have made things a bit clearer but I don't think it's worth the hassle that a setting rename would cause dogfooders.
Attachment #693371 - Flags: review?(etienne) → review+
Attached patch Patch v2Splinter Review
I found a case where the sound was still here on an incoming call even if it was disabled... I also add back the indicators in the statusbar/lockscreen.
Attachment #693371 - Attachment is obsolete: true
Attachment #693492 - Flags: review?(etienne)
Comment on attachment 693492 [details] [diff] [review] Patch v2 Review of attachment 693492 [details] [diff] [review]: ----------------------------------------------------------------- Apparently my android phone has the same weird UX, so not holding the review for it :) r=me with the nits addressed ::: apps/communications/dialer/js/oncall.js @@ +181,1 @@ > activePhoneSound = !!value; nit: we get a boolean now, no need for |!!| @@ +301,5 @@ > }); > } else { > + if (activateVibration) { > + navigator.vibrate([100, 100, 100]); > + } nit: maybe start with the |if (activeVibration)| and not even do the mozvisibilitychange dance if false. ::: apps/system/js/sleep_menu.js @@ +38,5 @@ > + > + var settings = navigator.mozSettings; > + SettingsListener.observe('audio.volume.notification', 7, function(value) { > + settings.createLock().set({'ring.enabled': (value != 0)}); > + }); Just want to confirm the user experience: * put the phone in silent mode with the sleep button menu * press one of the volume button (changing the volume value) -> I get out of silent mode?
Attachment #693492 - Flags: review?(etienne) → review+
(In reply to Etienne Segonzac (:etienne) from comment #4) > Comment on attachment 693492 [details] [diff] [review] > Patch v2 > > Review of attachment 693492 [details] [diff] [review]: > ----------------------------------------------------------------- > > Apparently my android phone has the same weird UX, so not holding the review > for it :) > > r=me with the nits addressed > > ::: apps/communications/dialer/js/oncall.js > @@ +181,1 @@ > > activePhoneSound = !!value; > > nit: we get a boolean now, no need for |!!| > > @@ +301,5 @@ > > }); > > } else { > > + if (activateVibration) { > > + navigator.vibrate([100, 100, 100]); > > + } > > nit: maybe start with the |if (activeVibration)| and not even do the > mozvisibilitychange dance if false. I want the vibration to turn on when the setting returns. Maybe I should add a comment. > > ::: apps/system/js/sleep_menu.js > @@ +38,5 @@ > > + > > + var settings = navigator.mozSettings; > > + SettingsListener.observe('audio.volume.notification', 7, function(value) { > > + settings.createLock().set({'ring.enabled': (value != 0)}); > > + }); > > Just want to confirm the user experience: > > * put the phone in silent mode with the sleep button menu > * press one of the volume button (changing the volume value) > -> I get out of silent mode? Yep.
(In reply to Vivien Nicolas (:vingtetun) from comment #5) > > @@ +301,5 @@ > > > }); > > > } else { > > > + if (activateVibration) { > > > + navigator.vibrate([100, 100, 100]); > > > + } > > > > nit: maybe start with the |if (activeVibration)| and not even do the > > mozvisibilitychange dance if false. > > I want the vibration to turn on when the setting returns. Maybe I should add > a comment. > Nope, my bad, I thought I was commenting notifications.js where we don't have a setInterval so no occasion to have activateVibration becoming true.
Verified on Unagi build #20121231070201
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: