Closed
Bug 786694
Opened 13 years ago
Closed 13 years ago
B2G RIL: Import 2G SIM Contacts
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: allstars.chh, Assigned: allstars.chh)
References
Details
Attachments
(2 files, 5 obsolete files)
4.50 KB,
patch
|
Details | Diff | Splinter Review | |
3.55 KB,
patch
|
Details | Diff | Splinter Review |
Currently B2G cannot import 2G SIM(i.e. APP_TYPE_SIM) contacts,
we need to fix this.
Assignee | ||
Comment 1•13 years ago
|
||
Assignee | ||
Comment 2•13 years ago
|
||
Assignee | ||
Comment 3•13 years ago
|
||
Upload current WIP Patches,
but cannot test on the phone because I met problems in Bug 786686
Depends on: 786686
Assignee | ||
Comment 4•13 years ago
|
||
Attachment #656470 -
Attachment is obsolete: true
Attachment #657302 -
Flags: review?(philipp)
Assignee | ||
Comment 5•13 years ago
|
||
Hi, philikon
This patch deals with error, i.e. when sim is not inserted
So ContactService still get get callback.
Thanks
Attachment #656471 -
Attachment is obsolete: true
Attachment #657304 -
Flags: review?(philipp)
![]() |
||
Comment 6•13 years ago
|
||
Comment on attachment 657302 [details] [diff] [review]
Part 1: Patch to get sim contact
Review of attachment 657302 [details] [diff] [review]:
-----------------------------------------------------------------
I liek.
::: dom/system/gonk/ril_worker.js
@@ +1420,5 @@
> + *
> + * @params type
> + * "ADN" or "FDN".
> + * @params requestId
> + * Request id from RadioInterfaceLayer.
Don't need to mention `requestId` since the ril_worker is oblivious to it.
@@ +1428,5 @@
> + switch (type) {
> + case "ADN":
> + switch (this.appType) {
> + case CARD_APPTYPE_SIM:
> + options.fileId = ICC_EF_ADN;
Nit: trailing whitespace (also below)
Attachment #657302 -
Flags: review?(philipp) → review+
![]() |
||
Comment 7•13 years ago
|
||
Comment on attachment 657304 [details] [diff] [review]
Part 2: Error callback
Review of attachment 657304 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/system/gonk/ril_worker.js
@@ +1360,5 @@
> type: EF_TYPE_LINEAR_FIXED,
> callback: callback,
> loadAll: true,
> + requestId: options.requestId,
> + error: error
Can we call this `onerror` and put it next to the `callback` property, to signify that they're both functions.
(I'm not also wondering whether we should rename `callback` to `onsuccess` to match, but that's more work and risk than I'd like to introduce right now.)
@@ +1477,5 @@
> + function error(options) {
> + this.sendDOMMessage({rilMessageType: "icccontacts",
> + contactType: "ADN",
> + contacts: [],
> + requestId: options.requestId});
Reuse `options`? (Also above.)
Attachment #657304 -
Flags: review?(philipp) → review+
Assignee | ||
Comment 8•13 years ago
|
||
Address to philikon's comments
- remove requestId from comments
- remove trailing whitespace.
Attachment #657302 -
Attachment is obsolete: true
Assignee | ||
Comment 9•13 years ago
|
||
Address to philikon's comments
- error -> onerror and move it next to callback
- reuse options
Attachment #657304 -
Attachment is obsolete: true
Assignee | ||
Comment 11•13 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/164b65db56b6
https://hg.mozilla.org/integration/mozilla-inbound/rev/0ceee266e44f
Target Milestone: --- → mozilla18
Comment 12•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/164b65db56b6
https://hg.mozilla.org/mozilla-central/rev/0ceee266e44f
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•