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)

Other
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:koi+, b2g-v1.2 fixed)

RESOLVED FIXED
blocking-b2g koi+
Tracking Status
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
Blocks: flatfish
blocking-b2g: --- → koi?
Summary: hide phone-related settings → [settings] hide phone-related settings if telephony is not available
Assignee: nobody → gduan
@kevin, is it possible to simulate a device without navigator.mozTelephony or mozMobileConnection support on nightly?
Assignee: gduan → nobody
Flags: needinfo?(kgrandon)
Assignee: nobody → gduan
blocking-b2g: koi? → koi+
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?
(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)
Attached file PR to master
This patch will check navigator.mozTelephony to hide some settings.
Attachment #800015 - Flags: review?(achen)
Attachment #800015 - Flags: review?(achen) → review?(arthur.chen)
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)
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)
I put some comments in github, could you check it again? Thanks!
Attachment #800015 - Flags: review?(arthur.chen)
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 on attachment 800015 [details] PR to master Good work! r=me, thanks!
Attachment #800015 - Flags: review?(arthur.chen) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
blocking-b2g: koi? → koi+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: