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)
Tracking
(blocking-basecamp:+)
People
(Reporter: justin.lebar+bug, Assigned: vingtetun)
References
Details
Attachments
(1 file, 1 obsolete file)
|
8.87 KB,
patch
|
etienne
:
review+
|
Details | Diff | Splinter Review |
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.
| Reporter | ||
Updated•13 years ago
|
blocking-basecamp: --- → ?
Updated•13 years ago
|
blocking-basecamp: ? → +
Priority: -- → P1
Target Milestone: --- → B2G C3 (12dec-1jan)
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → 21
| Assignee | ||
Comment 1•13 years ago
|
||
Attachment #693371 -
Flags: review?(etienne)
Comment 2•13 years ago
|
||
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+
| Assignee | ||
Comment 3•13 years ago
|
||
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 4•13 years ago
|
||
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+
| Assignee | ||
Comment 5•13 years ago
|
||
(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.
Comment 6•13 years ago
|
||
(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.
| Assignee | ||
Comment 7•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Verified on Unagi build #20121231070201
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•