Bug 915987 - Part 2: Update recordId for USIM contact. r=vicamo
author"allstars.chh" <allstars.chh@gmail.com>
Fri, 13 Sep 2013 00:07:14 +0200
changeset 160211 1a4154829e67c3a0a4286322a1b9d7595bb644f3
parent 160210 bb2c8956f37b4d93bc3fa48c82c6b0ea621e6590
child 160212 72c352e6ee3888de1bc3355be41f8afd993b4bcd
push id2961
push userlsblakk@mozilla.com
push dateMon, 28 Oct 2013 21:59:28 +0000
treeherdermozilla-beta@73ef4f13486f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvicamo
bugs915987
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 915987 - Part 2: Update recordId for USIM contact. r=vicamo
dom/system/gonk/ril_worker.js
--- a/dom/system/gonk/ril_worker.js
+++ b/dom/system/gonk/ril_worker.js
@@ -12726,16 +12726,17 @@ let ICCContactHelper = {
     let gotPbrCb = function gotPbrCb(pbrs) {
       let pbrIndex = Math.floor(contact.recordId / ICC_MAX_LINEAR_FIXED_RECORDS);
       let pbr = pbrs[pbrIndex];
       if (!pbr) {
         let error = onerror || debug;
         error("Cannot access Phonebook.");
         return;
       }
+      contact.recordId %= ICC_MAX_LINEAR_FIXED_RECORDS;
       this.updatePhonebookSet(pbr, contact, onsuccess, onerror);
     }.bind(this);
 
     ICCRecordHelper.readPBR(gotPbrCb, onerror);
   },
 
   /**
    * Update fields in Phonebook Reference File.