Closed
Bug 911677
Opened 12 years ago
Closed 12 years ago
[settings] hide phone-related settings if telephony is not available
Categories
(Firefox OS Graveyard :: Gaia::Settings, defect)
Tracking
(blocking-b2g:koi+, b2g-v1.2 fixed)
People
(Reporter: gasolin, Assigned: gduan)
References
Details
Attachments
(1 file)
for non-telephony devices,
use 'navigator.mozTelephony' feature detection to hide phone-related settings
| Reporter | ||
Updated•12 years ago
|
Summary: hide phone-related settings → [settings] hide phone-related settings if telephony is not available
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → gduan
| Reporter | ||
Comment 1•12 years ago
|
||
@kevin, is it possible to simulate a device without navigator.mozTelephony or mozMobileConnection support on nightly?
Assignee: gduan → nobody
Flags: needinfo?(kgrandon)
| Reporter | ||
Updated•12 years ago
|
Assignee: nobody → gduan
Updated•12 years ago
|
blocking-b2g: koi? → koi+
| Assignee | ||
Comment 2•12 years ago
|
||
After tracing the code and discussing with Arthur,
1. identify mobileConnection instead of iccHelper.enable, since iccHelper.js will be removed in the future
2. hide callsettings/cellular/SIM security/icc entries from root panel
3. remove ringtone from list for sound.js
I will implement it soon.
blocking-b2g: koi+ → koi?
Comment 3•12 years ago
|
||
(In reply to Fred Lin [:gasolin] from comment #1)
> @kevin, is it possible to simulate a device without navigator.mozTelephony
> or mozMobileConnection support on nightly?
It's not yet possible to do this. You could hack/disable the shim in desktop helper, but the best thing to do would probably be to add some kind of tablet simulation mode. Or perhaps some build flag that will make these shims not be included.
Flags: needinfo?(kgrandon)
| Assignee | ||
Comment 4•12 years ago
|
||
This patch will check navigator.mozTelephony to hide some settings.
Attachment #800015 -
Flags: review?(achen)
Updated•12 years ago
|
Attachment #800015 -
Flags: review?(achen) → review?(arthur.chen)
Comment 5•12 years ago
|
||
Comment on attachment 800015 [details]
PR to master
There are minor suggestions I would like you to address before merging. Detail please check github, thanks for the effort!
Attachment #800015 -
Flags: review?(arthur.chen)
| Assignee | ||
Comment 6•12 years ago
|
||
Comment on attachment 800015 [details]
PR to master
Thanks for your advice. Patch is updated, please kindly check again!
Attachment #800015 -
Flags: review?(arthur.chen)
Comment 7•12 years ago
|
||
I put some comments in github, could you check it again? Thanks!
Updated•12 years ago
|
Attachment #800015 -
Flags: review?(arthur.chen)
| Assignee | ||
Comment 8•12 years ago
|
||
Comment on attachment 800015 [details]
PR to master
Hi Arthur,
Thanks for your advice.
Patch is updated.
Please kindly review it again.
Attachment #800015 -
Flags: review?(arthur.chen)
Comment 9•12 years ago
|
||
Comment on attachment 800015 [details]
PR to master
Good work! r=me, thanks!
Attachment #800015 -
Flags: review?(arthur.chen) → review+
| Assignee | ||
Comment 10•12 years ago
|
||
Thanks Arthur.
Merge into master,
https://github.com/mozilla-b2g/gaia/commit/caab526a4f8c67f36d28fea5d0c9d50edf1bdcd6
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
blocking-b2g: koi? → koi+
status-b2g-v1.2:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•